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

 

沒有留言:

張貼留言

113 學年度第 1 學期 RFID應用課程 Arduino程式

113 學年度第 1 學期 RFID應用課程 Arduino程式 https://www.mediafire.com/file/zr0h0p3iosq12jw/MFRC522+(2).7z/file 內含修改過後的 MFRC522 程式庫 (原程式有錯誤) //定義MFRC522...