You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
蔡享 ee36ad151a PX4 v1.17.0 + cuav 7-nano minimal_vtol 1 month ago
..
Kconfig PX4 v1.17.0 + cuav 7-nano minimal_vtol 1 month ago
Make.defs PX4 v1.17.0 + cuav 7-nano minimal_vtol 1 month ago
Makefile PX4 v1.17.0 + cuav 7-nano minimal_vtol 1 month ago
README.md PX4 v1.17.0 + cuav 7-nano minimal_vtol 1 month ago
mqttc_pub.c PX4 v1.17.0 + cuav 7-nano minimal_vtol 1 month ago

README.md

This is a simple MQTT publisher example using MQTT-C

By default it publishes to the "test" topic and exits. Default behaviour including, host, port, topic, message and loop count can be changed through different arguments.

To test: From the host start an MQTT broker and subscribe to the "test" topic. Here mosquitto is used:

mosquitto&
mosquitto_sub -t test

Make sure that mosquitto is not configured in local mode only.

From the nsh:

Launch the built-in app mqttc_pub specifying the host:

mqttc_pub -h HOST

The target will publish the message "test".