robe.zhang 发表于 3 天前

【米尔-MYD-LR3568-GK开发板--试用评测】K.开发板接入云端

本帖最后由 robe.zhang 于 2024-11-18 22:42 编辑

本文主要两部分,
1,设备信息,保存服务器信息。接入服务器,验证等。
2,添加Sub topic,Pub topic,recv_headler。基于代码分析的,需要啥给啥。参考前面帖子《阿里云客户端分析》:https://www.eefocus.com/forum/thread-231543-1-1.html

添加三元组信息
!(https://www.eefocus.com/forum/data/attachment/forum/202411/18/202228hsis31x7dibs3ggf.png)
添加 mqtt_host, port,一定要和自己阿里云实例对应。有的注释比较老或者太新不适合
!(https://www.eefocus.com/forum/data/attachment/forum/202411/18/202246mr09pcsn040ml4cp.png)
Sub topic:
!(https://www.eefocus.com/forum/data/attachment/forum/202411/18/202334wkknuukfflgykgzj.png)
Pub topic:
!(https://www.eefocus.com/forum/data/attachment/forum/202411/18/202343mbpapqz3uktn3pbz.png)
消息处理函数,
!(https://www.eefocus.com/forum/data/attachment/forum/202411/18/202349lgbmb69ca3l66gul.png)
从代码中来,到代码中去。完整的开发流程到此就结束。

页: [1]
查看完整版本: 【米尔-MYD-LR3568-GK开发板--试用评测】K.开发板接入云端