mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
854 B
854 B
ESP32 and WiFi
Using the ESP8266 board as a model, we must implement the ESP32 WiFi functions. This will entail
the creation of a new source file called jswrap_esp32_network.c which will live in
libs/network/esp32. There will also be a corresponding jswrap_esp32_network.h.
The majority of the WiFi API is documented in the Espruino docs here:
http://www.espruino.com/Reference#Wifi
This will expose a module called Wifi which will have the following static methods defined
upon it:
connect- Connect to an access pointdisconnectgetAPDetailsgetAPIPgetDetailsgetHostByNamegetHostnamegetIPgetStatuspingrestoresavescansetConfigsetHostnamestartAPstopAP
Implementation status
connect
Working.
disconnect
Working.
All others
Not yet implemented