https://github.com/jyhi/wot-led
Arduino LED with Web Things API implemented
https://github.com/jyhi/wot-led
arduino arduino-uno web-of-things webofthings wot
Last synced: about 1 month ago
JSON representation
Arduino LED with Web Things API implemented
- Host: GitHub
- URL: https://github.com/jyhi/wot-led
- Owner: jyhi
- License: mit
- Archived: true
- Created: 2018-03-12T13:59:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-03-12T13:59:56.000Z (about 7 years ago)
- Last Synced: 2024-10-24T10:07:00.762Z (6 months ago)
- Topics: arduino, arduino-uno, web-of-things, webofthings, wot
- Language: C++
- Size: 10.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# Arduino LED with Web Things API
This is a simple & small implementation of Mozilla's [Web Thing API], which let
you control the LED connected on Arduino pin 8 through the REST API (which means
you can also control the LED using the Mozilla Web Thing Gateway).This implementation makes use of a SD card to store textual contents (e.g. JSON,
HTML).To run this program, you need:
- Arduino
- Arduino Ethernet Shield (with W5100)
- LED attached on pin 8This implementation make use of [ArduinoJson] to support JSON parsing. Currently
it can run on an Arduino UNO with:- Full serial debug message, but no mDNS or DHCP support
- DHCP support, but no mDNS or full serial debug message... since the Arduino UNO has only 32K flash and 2K SRAM, limiting the sketch
size. (the two configuration above both occupies 30K+ ROM)[Web Thing API]: https://iot.mozilla.org/wot
[ArduinoJson]: https://arduinojson.org## Build
Use [PlatformIO], run:
```bash
# `pio` is the shorthand of `platformio`
pio run # Build
pio run -t upload # Burn
pio run -t monitor # Attach serial terminal
```Arduino IDE is not supported.
[PlatformIO]: https://platformio.org/
## Configuration
You can configure to let this program use mDNS or DHCP or not. Please have a
look of [platformio.ini](platformio.ini).## TODO
I write this program for fun.
- [ ] Add ESP8266 support
## License
This program is licensed under [The MIT License](COPYING).