@@ -36,6 +36,7 @@ void rn2xx3::autobaud()
36
36
_serial.write ((byte)0x00 );
37
37
_serial.write (0x55 );
38
38
_serial.println ();
39
+ // we could use sendRawCommand(F("sys get ver")); here
39
40
_serial.println (" sys get ver" );
40
41
response = _serial.readStringUntil (' \n ' );
41
42
}
@@ -187,10 +188,11 @@ bool rn2xx3::initOTAA(String AppEUI, String AppKey, String DevEUI)
187
188
188
189
// Semtech and TTN both use a non default RX2 window freq and SF.
189
190
// Maybe we should not specify this for other networks.
190
- if (_moduleType == RN2483)
191
- {
192
- sendRawCommand (F (" mac set rx2 3 869525000" ));
193
- }
191
+ // if (_moduleType == RN2483)
192
+ // {
193
+ // sendRawCommand(F("mac set rx2 3 869525000"));
194
+ // }
195
+ // Disabled for now because an OTAA join seems to work fine without.
194
196
195
197
_serial.setTimeout (30000 );
196
198
sendRawCommand (F (" mac save" ));
@@ -274,7 +276,9 @@ bool rn2xx3::initABP(String devAddr, String AppSKey, String NwkSKey)
274
276
break ;
275
277
case RN2483:
276
278
sendRawCommand (F (" mac reset 868" ));
277
- sendRawCommand (F (" mac set rx2 3 869525000" ));
279
+ // sendRawCommand(F("mac set rx2 3 869525000"));
280
+ // In the past we set the downlink channel here,
281
+ // but setFrequencyPlan is a better place to do it.
278
282
break ;
279
283
default :
280
284
// we shouldn't go forward with the init
0 commit comments