We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 093dadf commit c5e3703Copy full SHA for c5e3703
Projects/B-L072Z-LRWAN1/Applications/LoRa/AT_Slave/LoRaWAN/App/src/at.c
@@ -456,13 +456,12 @@ ATEerror_t at_NwkSKey_set(const char *param)
456
LoRaMacStatus_t status;
457
uint8_t NwkSKey[16];
458
459
- mib.Type = MIB_NWK_S_ENC_KEY;
460
-
461
if (sscanf_16_hhx(param, NwkSKey) != 16)
462
{
463
return AT_PARAM_ERROR;
464
}
465
+ mib.Type = MIB_NWK_S_ENC_KEY;
466
mib.Param.NwkSEncKey = NwkSKey;
467
status = LoRaMacMibSetRequestConfirm(&mib);
468
CHECK_STATUS(status);
0 commit comments