I need an example of communication with MQTT. Not only reading but also writing would be great!
I’ve uploaded an extended version of the example I sent you (plus, it uses only SELF.KOM for communication) at the end of our MQTT documentation
So that others can also benefit from it.
It contains a picture with two buttons. One sends a constant topic/message, the other sends topic/data entered by a user. The example uses 2 communication lines, each of them has an MQTT station. Data sent via one communication is received by the other one. The example works with a locally installed Mosquito broker (hence the local IP addresses)
I installed mosquitto, in the mosquitto.conf only added (or uncommented, I’m not sure) the line
listener 1883
and I run Mosquitto from the command line: