add reset after rcommand 09 02
This commit is contained in:
parent
0e62683cdf
commit
6b9d6b33b3
@ -437,8 +437,8 @@ Send for example `8386` as Downlink on Port 2 to get battery status and time/dat
|
|||||||
0x09 reset functions (send this command UNconfirmed only to avoid boot loops!)
|
0x09 reset functions (send this command UNconfirmed only to avoid boot loops!)
|
||||||
|
|
||||||
0 = restart device (coldstart)
|
0 = restart device (coldstart)
|
||||||
1 = reset MAC counter to zero
|
1 = zeroize MAC counter
|
||||||
2 = reset device to factory settings
|
2 = reset device to factory settings and restart device
|
||||||
3 = flush send queues
|
3 = flush send queues
|
||||||
4 = restart device (warmstart)
|
4 = restart device (warmstart)
|
||||||
8 = reboot device to maintenance mode (local web server)
|
8 = reboot device to maintenance mode (local web server)
|
||||||
|
@ -20,8 +20,9 @@ void set_reset(uint8_t val[]) {
|
|||||||
reset_counters(); // clear macs
|
reset_counters(); // clear macs
|
||||||
break;
|
break;
|
||||||
case 2: // reset device to factory settings
|
case 2: // reset device to factory settings
|
||||||
ESP_LOGI(TAG, "Remote command: reset device to factory settings");
|
ESP_LOGI(TAG, "Remote command: reset device to factory settings and restart");
|
||||||
eraseConfig();
|
eraseConfig();
|
||||||
|
do_reset(false);
|
||||||
break;
|
break;
|
||||||
case 3: // reset send queues
|
case 3: // reset send queues
|
||||||
ESP_LOGI(TAG, "Remote command: flush send queue");
|
ESP_LOGI(TAG, "Remote command: flush send queue");
|
||||||
|
Loading…
Reference in New Issue
Block a user