In the process of chasing down an intemittent issue in NBIoT comms and it's looking like a device side issue. During my investigation, I noticed what looks like a typo in the openSocketClient() in WaspBG96.cpp.
At line 2855 the variable answer is set by calling getSocketStatus(). The following if statements seems to be incorrect, but I am not yet certain of the intention in the code section and the effect of the bug, so won't hazard a PR. However, I will take a guess that, in openSocketClient(), the statement;
if (answer == 0)
{
if (answer == 2)
{
getErrorCode();
#if DEBUG_BG96 > 0
printErrorCode();
#endif
}
if (answer == 1)
{
PRINT_BG96(F("Error opening socket - Socket is already opened\n"));
}
return 23;
}
In the process of chasing down an intemittent issue in NBIoT comms and it's looking like a device side issue. During my investigation, I noticed what looks like a typo in the
openSocketClient()
in WaspBG96.cpp. At line 2855 the variableanswer
is set by callinggetSocketStatus()
. The following if statements seems to be incorrect, but I am not yet certain of the intention in the code section and the effect of the bug, so won't hazard a PR. However, I will take a guess that, inopenSocketClient()
, the statement;... should in fact start with;