Adding tx power

This commit is contained in:
Brad Nelson
2021-01-09 07:48:30 -08:00
parent d360c6eaf9
commit a707176cd1
2 changed files with 3 additions and 0 deletions

View File

@ -90,6 +90,8 @@
X("WiFi.macAddress", WIFI_MAC_ADDRESS, WiFi.macAddress((uint8_t *) tos); DROP) \
X("WiFi.localIP", WIFI_LOCAL_IPS, DUP; tos = FromIP(WiFi.localIP())) \
X("WiFi.mode", WIFI_MODE, WiFi.mode((wifi_mode_t) tos); DROP) \
X("WiFi.setTxPower", WIFI_SET_TX_POWER, WiFi.setTxPower((wifi_power_t) tos); DROP) \
X("WiFi.getTxPower", WIFI_GET_TX_POWER, DUP; tos = (cell_t) WiFi.getTxPower()) \
/* mDNS */ \
X("MDNS.begin", MDNS_BEGIN, tos = MDNS.begin((const char *) tos)) \
/* SPIFFS */ \

View File

@ -123,6 +123,7 @@ create out-string out-size 1+ allot align
: do-serve
80 WebServer.new webserver !
z" /webui" ['] handle-index webserver @ WebServer.on
z" /" ['] handle-index webserver @ WebServer.on
z" /input" ['] handle-input webserver @ WebServer.on
webserver @ WebServer.begin