Failed to report version in skecth
-
Hello,
When I'm using ack in sendSketchInfo, the gateway never see version string, whereas with no ack (as default) there's no problem.
Here code of presentation
void presentation()
{
sendSketchInfo("sketchABC", "v1.0",[true|false]);
present(CHILD_DOOR_ID, S_DOOR, "garageDoor", true);
}Result on gateway with ack=false:
0;255;3;0;9;TSP:MSG:READ 123-123-0 s=255,c=3,t=11,pt=0,l=9,sg=0:sketchABC
123;255;3;0;11;sketchABC
0;255;3;0;9;TSP:MSG:READ 123-123-0 s=255,c=3,t=12,pt=0,l=4,sg=0:v1.0
123;255;3;0;12;v1.0
0;255;3;0;9;TSP:MSG:READ 123-123-0 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
0;255;3;0;9;TSP:MSG:ACK msg
0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=0,st=ok:garageDoor
123;234;0;0;0;garageDoorResult on sensor with ack= false
TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=ok:sketchABC
!TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=12,pt=0,l=4,sg=0,ft=0,st=fail:v1.0
TSP:MSG:SEND 123-123-0-0 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=1,st=ok:garageDoor
Request registration...
!TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=fail:2
TSP:MSG:READ 0-0-123 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
TSP:MSG:READ 0-0-123 s=255,c=3,t=27,pt=1,l=1,sg=0:1
Node registration=1Result on gateway with ack=true:
0;255;3;0;9;TSP:MSG:READ 123-123-0 s=255,c=3,t=11,pt=0,l=9,sg=0:sketchABC
0;255;3;0;9;TSP:MSG:ACK msg
0;255;3;0;9;!TSP:MSG:SEND 0-0-123-123 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=fail:sketchABC
123;255;3;0;11;sketchABC
0;255;3;0;9;TSP:MSG:READ 123-123-0 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
0;255;3;0;9;TSP:MSG:ACK msg
0;255;3;0;9;TSP:MSG:SEND 0-0-123-123 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=0,st=ok:garageDoor
123;234;0;0;0;garageDoorResult on sensor with ack=true
TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=11,pt=0,l=9,sg=0,ft=0,st=ok:sketchABC
!TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=12,pt=0,l=4,sg=0,ft=0,st=fail:v1.0
TSP:MSG:SEND 123-123-0-0 s=234,c=0,t=0,pt=0,l=10,sg=0,ft=1,st=ok:garageDoor
Request registration...
!TSP:MSG:SEND 123-123-0-0 s=255,c=3,t=26,pt=1,l=1,sg=0,ft=0,st=fail:2
TSP:MSG:READ 0-0-123 s=234,c=0,t=0,pt=0,l=10,sg=0:garageDoor
TSP:MSG:READ 0-0-123 s=255,c=3,t=27,pt=1,l=1,sg=0:1
Node registration=1Any idea?
Note : May I have to do something special with ack (in presentation and send too)?
-
What is your code doing after the presentation? I always use a little wait after the presentation as many rapid presentations might congest the gateway:
void presentation() { // Send the sketch version information to the gateway and Controller char datetime[24]; // 22 + 1 should ben enough snprintf(datetime,24,"%s | %s",__DATE__,__TIME__); //Serial.print(F("SketchInfo: ")); //Serial.println(datetime); sendSketchInfo("Microwave/Knocks.", datetime); mw_s_var1.present(); wait(10); mw_s_var2.present(); wait(10); /* ks_s_var1.present(); wait(10); ks_s_var2.present(); wait(10); */ }
Suggested Topics
-
Code for beta-testing?
Controllers • 24 Mar 2014, 20:48 • andriej 9 Aug 2014, 10:44 -
Making WiFiManager compatible with MySensors 2.3.2
Bug Reports • 12 Feb 2020, 21:43 • pihome 1 Jun 2022, 16:02 -
NRF51-52 PA not support ???
Bug Reports • 23 Feb 2019, 16:40 • berkseo 8 Jul 2021, 11:42 -
ESP32 + Signing fails after xxx msg as result of memory leak
Bug Reports • 6 Apr 2020, 18:43 • Technovation 7 Mar 2022, 10:37 -
sleep(0) in V2.1 doesn't sleep indefinitely anymore. Used to powerdown and sleep in V1.5
Bug Reports • 22 Nov 2019, 00:35 • GaryStofer 15 Apr 2023, 05:50 -
Missing "__libc_init_array();" wenn using samd without USB
Bug Reports • 6 Jul 2022, 08:36 • ltigges 7 Jul 2022, 22:43