
Èí¼þʹÓ㺢ÙÉèÖÃÈí¼þ/Download/964.html
¢ÚMQTTfx-1.7.1
Ó²¼þÁ¬½Ó£º4G DTU 780 v2£¨Ë¢MQTT¹Ì¼þ£©Ê¹ÓÃRS485/232Á¬½ÓµçÄÔ£¬½Óͨ5V/12VµçÔ´¡£
1. ÉèÖò¨ÌØÂÊΪ115200£¬Ð£ÑéNONE£¬8£¬1£¬´ò¿ª¶ÔÓ¦µÄ´®¿ÚºÅ¡£
2. ÏÖÔÚÎÒÃÇÓÃ780 v2Á¬½ÓMQTT·þÎñÆ÷£º
¢ÙAT+IPPORT="39.105.117.9",1883£¨±¾´Î²âÊÔÁ¬½ÓÎÒ˾MQTT·þÎñÆ÷£©
¢ÚAT+USERPWD="usr","www.usr.cn"£¨ÊäÈëÕ˺ÅÃÜÂ룩
¢ÛAT+clientid="1234abcd"£¨ÊäÈë¿Í»§»úID£©
¢ÜAT+START£¨ÆôÓÃMQTTÁ¬½Ó£©
ÒÀ´Î·¢ËÍÒÔÉÏATÖ¸Á·µ»ØOK£¬½¨Á¢MQTTÁ¬½Ó£¬ÈçÏÂͼËùʾ
3. ´ò¿ªMQTTfx£¬Ñ¡ÔñExtras -> Edit Conneciont Profiles£¬ÌîÈëͼÖÐIP£¬¶Ë¿ÚºÍ¿Í»§»úID£¬µãOK±£´æ
4.ÊäÈëMQTT·þÎñÆ÷Õ˺ţ¬ÃÜÂ룬µãOK±£´æ£¬ÈçÏÂͼ
5. ·µ»ØMQTTfxÖ÷½çÃæµã»÷connect£¬Ñ¡ÔñSubscribe£¬ÊäÈëTOPIC£¬Ñ¡ÖÐÓÒ²àSubscribe£¬ÈçÏÂͼ
6. ÊäÈëATÖ¸Áî
¢ÙAT+PUBLISH="TOPIC",6,0£¨½¨Á¢Ö÷ÌâÐÅÏ¢£¬Ö÷ÌâΪTOPIC,ÏûÏ¢ÄÚÈݳ¤¶ÈΧΪ6¸ö×Ö½Ú£©
¢ÚYOUREN£¨ÊäÈëÏûÏ¢ÄÚÈÝ£¬×¢ÒâĩβûÓлسµ£©
´Ëʱ¿ÉÒÔÔÚMQTTfxÖÐÊÕµ½ÏûÏ¢£¬ÏÔʾYOUREN
ÒÔÉÏÊÇʹÓÃ780 V2·¢ËÍÏûÏ¢£¬ÔÚµçÄÔ¶ËMQTTfx¶©ÔÄÏûÏ¢£¬
ÒÔÏÂÊÇÔÚÇ°ÃæµÄ»ù´¡ÉÏÔÚµçÄÔ¶ËMQTTfx·¢ËÍÏûÏ¢£¬Ê¹ÓÃ780 V2¶©ÔÄÏûÏ¢
1. ÔÚÉèÖÃÈí¼þÊäÈëATÖ¸ÁîAT+SUBSCRIBE=¡±TOPIC1¡±,1
2. ÔÚMQTTfxÑ¡ÔñPublish£¬ÊäÈëTOPIC£¬ÏÂÃæÕýÎÄÊäÈëYOUREN1£¬µã»÷Publish£¬¼´¿ÉÔÚ´®¿Ú¶ËÊÕµ½ÏûÏ¢£¬ÈçÏÂͼ