[Solved] Internal message I_DISCOVER_RESPONSE is handed over to the controller
-
When the internal message I_DISCOVER_RESPONSE is received in the gw it's sent to the controller. I'm using an Ethernet MQTT client GW with Mosquitto. Is this message used by some controller? Or should it be kept internally? In my case it messes up with my controller functions.
Debug messages captured in the gw:
0;255;3;0;9;TSM:READY:NWD REQ 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 0;255;3;0;9;TSF:MSG:READ,26-26-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0 0;255;3;0;9;Sending message on topic: mygateway1-out/26/255/3/0/21
I added the following lines to MyTransport.cpp after:
https://github.com/mysensors/MySensors/blob/development/core/MyTransport.cpp#L705if (type == I_DISCOVER_RESPONSE) { // don't send to controller return; }
With the patch added it looks like this:
0;255;3;0;9;TSM:READY:NWD REQ 0;255;3;0;9;TSF:MSG:SEND,0-0-255-255,s=255,c=3,t=20,pt=0,l=0,sg=0,ft=0,st=OK: 0;255;3;0;9;TSF:MSG:READ,26-26-0,s=255,c=3,t=21,pt=1,l=1,sg=0:0
Pls. confirm if this is correct.
-
@jpaulin No, this is correct - the I_DISCOVER_RESPONSE messages can be used by the controller to reveal the network topology.
-
@tekka ok, I'll fix it on the controller side, thanks!
3 out of 3
Suggested Topics
-
Code for beta-testing?
Controllers • 24 Mar 2014, 20:48 • andriej 9 Aug 2014, 10:44 -
NRF51-52 PA not support ???
Bug Reports • 23 Feb 2019, 16:40 • berkseo 8 Jul 2021, 11:42 -
Making WiFiManager compatible with MySensors 2.3.2
Bug Reports • 12 Feb 2020, 21:43 • pihome 1 Jun 2022, 16:02 -
Missing "__libc_init_array();" wenn using samd without USB
Bug Reports • 6 Jul 2022, 08:36 • ltigges 7 Jul 2022, 22:43 -
RFM95W sleep() directly after send() often doesn't sleep radio
Bug Reports • 1 Jan 2023, 18:41 • prawnpie 8 Jan 2023, 05:36 -
Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
Bug Reports • 21 Feb 2023, 01:55 • d-smes 25 Feb 2023, 19:37