UDP trigger for ESP8266 / ESP-WROOM-02.
- Arduino core for ESP8266 WiFi chip
https://github.com/esp8266/arduino-esp8266fs-plugin
- Arduino ESP8266 filesystem uploader
https://github.com/esp8266/Arduino
- Download to your sketch folder for Arduino.
- Open the
EspUdpTrigger.ino
. - Upload sketch data directory using arduino-esp8266fs-plugin.
- Upload the sketch file via serial from
UART mode
. - Switch to the
Flash mode
. - Reboot the ESP.
- Join the ESP AP.(SSID="esp", PASSWORD="12345678")
- Access to http://192.168.4.1/
( If you have "stack" error, please try access to http://192.168.4.1/init first for initialization the EEPROM. ) - Set to the [Device Name] and [SSID], [PASS] for your Wi-Fi router.
- Access to
http://<Device Name>.local/
or IP Address after Reboot.
If SSID or password can not be found, AP mode. When it is found, it starts up in STA mode.
No | URL | Name |
---|---|---|
1 | http://<Device Name>.local/ |
Root Menu. This page. |
2 | http://<Device Name>.local/pin |
Set GPIO pin value. ex) http://Controller_01.local/pin?no=5&value=255 |
3 | http://<Device Name>.local/config |
Set device name, SSID, PASS. ex) http://Controller_01.local/config?name=servo&ssid=wifi_router&pass=12345678&triggers_0_pin=12&triggers_0_ip=192.168.0.100&triggers_0_port=20000 |
4 | http://<Device Name>.local/init |
Restore the default settings. |
UDP Message Example:
Controller_01/12/1;
[Device Name]/[Pin Number]/[Flag];
Teruaki Tsubokura http://teruaki-tsubokura.com/