feat: WLAN-Treiber mit Onboarding-AP, Build-Credentials und Befehl net
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
|
||||
#include "light/nl_control.h"
|
||||
#include "light/nl_engine.h"
|
||||
#include "net/nl_wifi.h"
|
||||
#include "sys/nl_app.h"
|
||||
#include "sys/nl_console.h"
|
||||
#include "sys/nl_console_cmd.h"
|
||||
@@ -101,6 +102,13 @@ static void exec(const nl_cmd_t *c)
|
||||
case NL_CMD_REBOOT:
|
||||
nl_app_reboot();
|
||||
return;
|
||||
case NL_CMD_NET: {
|
||||
nl_wifi_status_t w;
|
||||
nl_wifi_status(&w);
|
||||
printf("net: mode=%s ssid=%s ip=%s sta_ip=%s rssi=%d error=%s host=%s\r\n", w.mode, w.ssid, w.ip,
|
||||
w.sta_ip[0] ? w.sta_ip : "-", w.rssi, w.error ? w.error : "-", nl_wifi_hostname());
|
||||
return;
|
||||
}
|
||||
case NL_CMD_WDTEST:
|
||||
printf("wdtest: holding app lock forever\r\n");
|
||||
nl_app_lock(); /* deliberately never released: light_task and app_task stall on it,
|
||||
|
||||
Reference in New Issue
Block a user