![]() ![]() To learn how to set up your ESP8266 as an access point, read: This example also works in access point mode. In this example, the ESP8266 is in station mode. This sketch is based on the WebSerial library example: ESP8266_DemoĬonst char* ssid = "REPLACE_WITH_YOUR_SSID" // Your WiFi SSIDĬonst char* password = "REPLACE_WITH_YOUR_PASSWORD" // Your WiFi Passwordīefore uploading the code to your board, don’t forget to insert your network credentials. You can send the message ON to light up the board’s built-in LED or the message OFF to turn it off. Additionally, you can send messages from the web-based serial monitor to the board. This example prints Hello! to the web-based serial monitor every two seconds. We’ve modified the example a bit to make it more interactive. The library provides a simple example of creating the Web Serial Monitor to output and receive messages. ![]() lib_deps = ESP Async WebServerĪyushsharma82/WebSerial ^1.1.0 ESP8266 WebSerial Example If you’re using VS Code with the PlatformIO extension, copy the following to the platformio.ini file to include the libraries. Then, in your Arduino IDE, go to Sketch > Include Library > Add. To install these libraries, click on the previous links to download the libraries’ files. ![]() Click the following links to download the libraries’ files. You also need to install the ESPAsyncWebServer and the AsyncTCP libraries. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |