Closed arihantdaga closed 3 years ago
Hi @gmag11 , I came across these if conditions if (searchForGateway (&rtcmem_data), true) in lines https://github.com/gmag11/EnigmaIOT/blob/db1feacc9287ae786eba8caf87142d031d123706/src/EnigmaIOTNode.cpp#L752 https://github.com/gmag11/EnigmaIOT/blob/db1feacc9287ae786eba8caf87142d031d123706/src/EnigmaIOTNode.cpp#L761
if (searchForGateway (&rtcmem_data), true)
was it meant to be - if (searchForGateway (&rtcmem_data, true)) I noticed this problem because by node was always trying to conenct to the gateway even when it could not find the gateway. It would print this in the logs.
if (searchForGateway (&rtcmem_data, true))
Gateway SMART_S not found Found gateway. Storing
I guess you are right. Would you mind to do a pull request over dev branch? Thank you!
Sure, yeah. Will do.
Merged. Will be published in next release
Hi @gmag11 , I came across these if conditions
if (searchForGateway (&rtcmem_data), true)
in lines https://github.com/gmag11/EnigmaIOT/blob/db1feacc9287ae786eba8caf87142d031d123706/src/EnigmaIOTNode.cpp#L752 https://github.com/gmag11/EnigmaIOT/blob/db1feacc9287ae786eba8caf87142d031d123706/src/EnigmaIOTNode.cpp#L761was it meant to be -
if (searchForGateway (&rtcmem_data, true))
I noticed this problem because by node was always trying to conenct to the gateway even when it could not find the gateway. It would print this in the logs.