cpptoml
library github installer:
$ git clone https://github.com/skystrife/cpptoml.git
- Go to File > Preferences
- Enter Enter
http://arduino.esp8266.com/stable/package_esp8266com_index.json
into the “Additional Boards Manager URLs” field as shown in the figure below. Then, click the “OK” button
- Note: if you already have the ESP32 boards URL, you can separate the URLs with a comma as follows:
https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/stable/package_esp8266com_index.json
- Go to Tools > Board > Boards Manager
- Search for ESP8266 and press install button for the “ESP8266 by ESP8266 Community“
- Create
Config.h
in/
directory of project - Define
SSID
andPASSWORD
for wifi inConfig.h
:#define SSID "my_network"
,#define PASSWORD "securepassword123"
- Define
PORT
for webserver inConfig.h
:#define PORT 1000
- Tools > Board > Generic ESP8266 Module (Or other your board)
- Tools > Port > Select COM port of your board
- And click on upload button(second button with arrow in left upper side)
- Public(also known as "White ip") ip address: For example
10.0.0.0/24
,10.172.0.0/24
(and other local ips) is not public ip; You can check this ip in your router, just findDefault gateway
line - If your ip is public - just open ports on your router
Now if you did everything correctly and checked the web server should be accessible at your public IP address
- You haven't powered your board
- Your ip is gray(not pubic)
- If 100% ip is public - the ports were not opened correctly
- Check the logs in the serial monitor - whether the board was connected to wifi