Hi Franco,
what do you mean with writing? Do you mean to publish data to the node? If so, you need to publish to the downlink topic, see this post:
Another MQTT library option is to use Mosquitto libraries:
https://mosquitto.org/api/files/mosquitto-h.html
Cheers,
TDK
1 Like