2021年1月11日 星期一

MQTTool – MQTT for iPhone

 MQTTool – MQTT for iPhone

源自於 https://leeluchowdaryravi.wordpress.com/2018/02/26/node-red-sensors-store-data-in-mongodb-database-and-exploring-thingspeak-mqttool/

Although in the examples I have given above I used PC based software to carryout my testing, equally it is possible to use a smartphone app. So, This is an MQTT client and test tool.

IMG_3481

IMG_3480

I have Installed the application via Appstore on iPhoneX. Opened the application and made the  following changes.

  • Enter host the shared network of Mac (IPV4 address) and the default port 1883.
  • Click on connect

1520880523987

  • It is connected to the port and next click on Subscribe
  • Enter the Topic as per the code and like we did above for Node-Red /devices/”device_id”/events in my case
  • Make the QOS to 2 and click Subscribe
  • You will see that it is Subscribed to the topic

IMG_3479

  • Click on Publish and enter the Topic & Message like we did above. Retain and Publish

IMG_3477

  • Hit on Stats to see the details

1520880470026

  • Here we see the values from DTH22 sensor flowing in our phone. Isn’t it simple and useful to see the activities remotely using your cell phone. All that we did is to setup the device using Mongoose-OS keep it connected to our mobile app using MQTT broker on local network.

IMG_1990

 

沒有留言:

張貼留言

2024產專班 作業2 (純模擬)

2024產專班 作業2  (純模擬) 1) LED ON,OFF,TIMER,FLASH 模擬 (switch 控制) 2)RFID卡號模擬 (buttom  模擬RFID UID(不從ESP32) Node-Red 程式 [{"id":"d8886...