How can i define message Payload Type

  • Hi,
    i am trying to change the Payload Type in this message,

    3304546 TSF:MSG:SEND,12-12-0-15,s=0,c=1,t=3,pt=3,l=2,sg=0,ft=0,st=OK:34

    from pt=3 to pt=0 in order to be recognized by the Dimmer Actuator
    ... with "P_STRING"(sent from MYSController) works but not with "P_UINT16" !

    the following is the output from DimmableLED Actuator example

    2301587 TSF:MSG:READ,12-0-15,s=0,c=1,t=3,pt=3,l=2,sg=0:34
    Changing level to 0, from 0
    2301594 TSF:MSG:SEND,15-15-0-0,s=14,c=1,t=2,pt=1,l=1,sg=0,ft=0,st=OK:0
    2301604 TSF:MSG:SEND,15-15-0-0,s=14,c=1,t=3,pt=2,l=2,sg=0,ft=0,st=OK:0

    ... could someone help me!

  • Mod

    did you make any change from the original sketch?

  • no! i didn't ... i am working on it now... and seems that works by just changing the sender node variable declaration from "unsigned int" to "int" ! is that normal?

  • Mod

    in fact the sketch uses "INT", so if you change variable types you can expect problems :)

  • hmm! OK! sounds reasonable!
    Thanx you... :)

Log in to reply

Looks like your connection to MySensors Forum was lost, please wait while we try to reconnect.