We have two connected little boxes which we want to talk to each other. Connect them in turn to the computer. Use the Arduino ide. Launch the serial monitor, and make sure it is 115200 baud
Type dump mqtt.
Copy each line that needs changing, and add the value to the end. Enter the completed line. Eg: mqttdevicename=sners_name
You will have to set the mqtt values however your mqtt server is set up.
This is an example of a command to the server. Type it into the serial monitor – your box should respond accordingly: {"process":"pixels", "command":"setnamedcolour", "colourname":"green"}
Use the mqttsub name to send a message to the other box. Eg
{"process":"pixels", "command":"setnamedcolour", "colourname":"purple", "brightness": 0.1, "to":"lb/command/CLB-d1f6de"}