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!
-
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?
-
in fact the sketch uses "INT", so if you change variable types you can expect problems
-
hmm! OK! sounds reasonable!
Thanx you...
1 out of 5
Suggested Topics
-
Day 1 - Status report
Announcements ⢠23 Mar 2014, 22:45 ⢠hek 24 Mar 2014, 20:12 -
NODs stop responding, but ping works.
Troubleshooting ⢠8 Mar 2025, 19:47 ⢠Marcin 8 Mar 2025, 19:47 -
Ghost Child
Troubleshooting ⢠15 Mar 2025, 07:44 ⢠FcNanoLed 18 Mar 2025, 18:36 -
Compiling Sensor code using BME280 and ESP8266
Troubleshooting ⢠26 Feb 2025, 00:32 ⢠dpcons 26 Feb 2025, 06:22 -
Can not compile MySensors on esp8266
Troubleshooting ⢠24 Aug 2024, 15:35 ⢠TheoL 29 Aug 2024, 20:47 -
JSN-SR04T-V3.0 Coax cable extended
Troubleshooting ⢠19 Mar 2025, 21:00 ⢠bocalexandru 21 Mar 2025, 12:05