https://github.com/apexskier/esp8266-switch
Basic wifi controlled switch based on an ESP8266 and Arduino.
https://github.com/apexskier/esp8266-switch
arduino esp8266 iot switch
Last synced: 5 months ago
JSON representation
Basic wifi controlled switch based on an ESP8266 and Arduino.
- Host: GitHub
- URL: https://github.com/apexskier/esp8266-switch
- Owner: apexskier
- Created: 2016-11-16T16:35:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-16T16:36:31.000Z (over 8 years ago)
- Last Synced: 2024-12-28T08:40:32.276Z (7 months ago)
- Topics: arduino, esp8266, iot, switch
- Language: Arduino
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Basic wifi controlled switch based on an ESP8266 and Arduino.
## HTTP API
### GET `/`
Returns JSON describing switch status.
```json
{
"open": true
}
```### POST `/?open=[true|false]`
HTTP status indicates success or failure.