I'm sending a message from node to node but when the message gets there it's the wrong type.
I need to send as P_STRING but it's showing as P_INT16
This is my send
void sendToReceiver(boolean reed_tripped)
{
char percent;
Serial.print(" Light Status ");
Serial.println(reed_tripped);
switch (reed_tripped) {
case 0:
percent = "0";
send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent).setType(V_PERCENTAGE));
//send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent));
//send(msgDimmer_to_5.set(percent, 0));
break;
case 1:
percent = "30";
send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent).setType(V_PERCENTAGE));
//send(msgDimmer_to_5.setDestination(5).setSensor(0).set(percent));
//send(msgDimmer_to_5.set(percent, 0));
break;
}
}
and the message
2836 !TSF:MSG:SEND,8-8-5-5,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=NACK:4
2842 !TSF:RTE:N2N FAIL
2846 TSF:MSG:SEND,8-8-0-5,s=0,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:4
2854 MCO:SLP:MS=360000,SMS=0,I1=0,M1=1,I2=255,M2=255
2861 TSF:TDI:TSL
What the heck am I doing wrong?