MQTT连接ONENET——互相订阅发布

MQTT服务器和端口号:183.230.40.396002
开发板:
设备ID:602906218
产品ID:352202
APIKEY:KFBKEY
connect:
10 25 00 04 4D 51 54 54 04 C2 00 78 00 09 36 30 32 39 30 36 32 31 38 00 06 33 35 32 32 30 32 00 06 4B 46 42 4B 45 59
subcribe:(订阅APP_TOPIC,接收APP发布的消息)
82 0E 00 0A 00 09 41 50 50 5F 54 4F 50 49 43 00
publish:(发送到KFB_TOPIC,APP 接收)
30 0E 00 09 4B 46 42 5F 54 4F 50 49 43 31 32 33
APP:
设备ID:602936664
产品ID:352202
APIKEY:APPKEY
connect:
10 25 00 04 4D 51 54 54 04 C2 00 78 00 09 36 30 32 39 33 36 36 36 34 00 06 33 35 32 32 30 32 00 06 41 50 50 4B 45 59

subcribe(订阅KFB_TOPIC,接收开发板发布的消息)
82 0E 00 0A 00 09 4B 46 42 5F 54 4F 50 49 43 00
publish(发送到APP_TOPIC,开发板接收)
30 0E 00 09 41 50 50 5F 54 4F 50 49 43 31 32 33

取消订阅:
unscribe(10)
A2 0D 00 0A 00 09 41 50 50 5F 54 4F 50 49 43
ack:
B0 02 00 0A
posted @ 2020-08-23 11:17  火红色祥云  阅读(107)  评论(0编辑  收藏  举报