/EspUdpTrigger

UDP trigger for ESP8266 / ESP-WROOM-02.

Primary LanguageArduinoMIT LicenseMIT

EspUdpTrigger

UDP trigger for ESP8266 / ESP-WROOM-02.

Dependency

  • Arduino core for ESP8266 WiFi chip

https://github.com/esp8266/arduino-esp8266fs-plugin

  • Arduino ESP8266 filesystem uploader

https://github.com/esp8266/Arduino

Usage

  1. Download to your sketch folder for Arduino.
  2. Open the EspUdpTrigger.ino.
  3. Upload sketch data directory using arduino-esp8266fs-plugin.
  4. Upload the sketch file via serial from UART mode.
  5. Switch to the Flash mode.
  6. Reboot the ESP.
  7. Join the ESP AP.(SSID="esp", PASSWORD="12345678")
  8. 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. )
  9. Set to the [Device Name] and [SSID], [PASS] for your Wi-Fi router.
  10. 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.

API

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 Trigger

UDP Message Example:

Controller_01/12/1;
[Device Name]/[Pin Number]/[Flag];

Screenshot

Screenshot01 Screenshot02 Screenshot03 Screenshot04 Screenshot04

Author

Teruaki Tsubokura http://teruaki-tsubokura.com/

@kohack_v

License

MIT