@Carywin Thanks for the instructions!!
I followed it and just got it working on a Leonardo clone. I am receiving messages from nodes on the Mosquitto broker on a Raspberry Pi.
0;255;3;0;9;TSF:MSG:SEND,0-0-51-213,s=213,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=OK:10280
0;255;3;0;9;Sending message on topic: sensors-out/213/213/1/0/23
0;255;3;0;9;TSF:MSG:READ,213-51-0,s=213,c=1,t=23,pt=2,l=2,sg=0:10281
0;255;3;0;9;TSF:MSG:ACK REQ
0;255;3;0;9;TSF:MSG:SEND,0-0-51-213,s=213,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=OK:10281
0;255;3;0;9;Sending message on topic: sensors-out/213/213/1/0/23
0;255;3;0;9;TSF:MSG:READ,207-51-0,s=207,c=1,t=23,pt=2,l=2,sg=0:21655
0;255;3;0;9;TSF:MSG:ACK REQ
0;255;3;0;9;TSF:MSG:SEND,0-0-51-207,s=207,c=1,t=23,pt=2,l=2,sg=0,ft=0,st=OK:21655
0;255;3;0;9;Sending message on topic: sensors-out/207/207/1/0/23
0;255;3;0;9;TSF:MSG:READ,213-51-0,s=213,c=1,t=23,pt=2,l=2,sg=0:10282
0;255;3;0;9;TSF:MSG:ACK REQ
mosquitto_sub -v -t 'sensors-out/#' -u XXXXXXX -P XXXXXXX
sensors-out/0/255/0/0/18 2.1.1
sensors-out/0/255/0/0/18 2.1.1
sensors-out/213/213/1/0/23 10217
sensors-out/208/208/1/0/0 24.69
sensors-out/213/213/1/0/23 10218
sensors-out/213/213/1/0/23 10219
sensors-out/213/213/1/0/23 10220
sensors-out/213/213/1/0/23 10221
sensors-out/213/213/1/0/23 10222
sensors-out/213/213/1/0/23 10223
sensors-out/208/208/1/0/0 24.69
sensors-out/213/213/1/0/23 10224
I am using Mysensors 2.1.1. and didn't need to do anything on the nodes.
Never worked with a Leonardo and spend a lot of time getting the serial port working on Win7. Also need to press reset everytime right before uploading a sketch.
Also need to add:
void setup() {
while (!Serial) {;}
}
otherwise Serial monitor shows nothing.