zs39 opened a new pull request, #3276:
URL: https://github.com/apache/nuttx-apps/pull/3276

   ## Summary
   
   It provides the necessary compilation files and configuration management 
files, and offers a publish demo and a subscribe demo
   
   ## Impact
   
   Adding a new library has no impact.
   
   ## Testing
   
   The publish/subscribe functionality was tested locally.
   
   First, start an agent using mosqutto.
   
   Then subscribe to a topic on your PC. The steps are as follows:
   `mosquitto_sub -h 10.189.144.129 -t "zs39" -v`
    Then publish it on the Nuttx platform. `mqtt_pub -h 10.189.144.129 -t 
"zs39" -m "your message"`
    
   On the PC, you can see the following printout.
   ```
   zs@zs-ThinkStation-P368 > mosquitto_sub -h 10.189.144.129 -t "zs39" -v
   zs39 your message
   ```
   
   Then subscribe on the Nuttx client. `mqtt_sub -h 10.189.144.129 -t "zs39"`
   
   Publish on PC `mosquitto_pub -h 10.189.144.129 -t "zs39" -m "hello world"` 
twice
   
   The following can be seen in the NuttX output:
   ```
   nsh> mqtt_sub -h 10.189.144.129 -t "zs39"
   hello world
   hello world
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to