Skip to content

Porting MQTT protocol to STM32 and W5500, Ali Cloud

STM32上移植MQTT协议使用W5500以太网芯片连接阿
The MQTT protocol is transplanted on the STM32 and the W5500 Ethernet chip is used to connect to Alibaba Cloud

gemma

Published August 30, 2022

Original author: 乌冬NymoOriginal source (new tab)

Porting  MQTT protocol to STM32 and W5500, Ali Cloud

Components

Hardware components Software Apps and online services

WIZnet parts

Project description

STM32上移植MQTT协议使用W5500以太网芯片连接阿里云 前言 有机会做这次项目很开心,学到了很多东西,但刚开始的时候是真的从零开始,网上找的资料都大相径庭,很多代码都有问题,而且把别人做的模块一个个移植实在是很麻烦,为了不让后来需要做类似这个物联网项目的大家走歪路,我尽可能的把我这次做项目的核心事务说清楚,个人能力有限,有错的地方麻烦轻喷和指教,谢谢各位。 正题 首先先把要做什么搞清楚,顾名思义,本次项目内容即: ①把MQTT协议移植到stm32上; ②通过W5500以太网芯片,用网线连接至本地路由; ③由stm32本地网口连接到阿里云 使用到的工具:Keil5、pahoMqtt包、stm32f103RCT6、W5500、网线*1 调试工具:485通信usart口串口通信、串口调试助手、通信猫、阿里云、MQTTfx、MQTTBOX(当然如果不使用串口,单步Debug也是可以,我当时就这样,搞的我快崩溃了,最后还是弄了串口方便很多,也很简单) 学习资料:这边安利和推广一下B站上一个叫橙子的up主,他做的视频挺好的,很适合萌新上手,视频看看能明白很多东西; 友情链接:stm32 mqtt移植 如果有违权的地方麻烦友情提醒一下,方便我删除。 进入正题,MQTT协议,硬件部分不多说。…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.

Similar projects you might like