mirror of
https://github.com/MarekZegare4/MeshCore-Solo.git
synced 2026-11-02 19:02:00 +00:00
allow remote management of wifi as user has cli permission
This commit is contained in:
@@ -2161,9 +2161,6 @@ bool MyMesh::handleCommand(const char* command, uint32_t sender_timestamp, char*
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef WIFI_SSID
|
#ifdef WIFI_SSID
|
||||||
// not accepted from the remote mesh CLI (timestamp != 0): these are credentials. The app
|
|
||||||
// over USB/BLE/WiFi and the serial console (timestamp 0) may set them.
|
|
||||||
if (sender_timestamp == 0) {
|
|
||||||
if (memcmp(command, "set wifi.ssid ", 14) == 0) {
|
if (memcmp(command, "set wifi.ssid ", 14) == 0) {
|
||||||
StrHelper::strncpy(_prefs.wifi_ssid, &command[14], sizeof(_prefs.wifi_ssid));
|
StrHelper::strncpy(_prefs.wifi_ssid, &command[14], sizeof(_prefs.wifi_ssid));
|
||||||
savePrefs();
|
savePrefs();
|
||||||
@@ -2209,7 +2206,6 @@ bool MyMesh::handleCommand(const char* command, uint32_t sender_timestamp, char*
|
|||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (strcmp(command, "board") == 0) {
|
if (strcmp(command, "board") == 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user