You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Debug.print(DBG_ERROR, F("Something went wrong; are you indoor? Move near a window, then reset and retry."));
108
108
return NetworkConnectionState::ERROR;
109
109
}
110
-
// Set channelmask based on frequency sub band index
111
-
if (_sub_band_id) {
112
-
String mask;
113
-
for (int i = 12; i > 0; i--) {
114
-
if (i == _sub_band_id) {
115
-
mask.concat("FF");
116
-
} else {
117
-
mask.concat("00");
118
-
}
119
-
}
120
-
_modem.sendMask(mask);
110
+
// Set channelmask based on configuration
111
+
if (_channelMask) {
112
+
_modem.sendMask(_channelMask);
121
113
}
122
114
//A delay is required between _modem.begin(band) and _modem.joinOTAA(appeui, appkey) in order to let the chip to be correctly initialized before the connection attempt
0 commit comments