BedSideLamp/README.md
Philip Johansson 156d92b7f8 OTA updates
2020-06-08 20:48:19 +02:00

18 lines
1.0 KiB
Markdown

# Bedside table
An esp8266 powered **IKEA Tvärfot** with a Neopixel ring and a proximity sensor.
![](https://external-content.duckduckgo.com/iu/?u=https%3A%2F%2Fwww.ikea.com%2Fbe%2Ffr%2Fimages%2Fproducts%2Ftvaerfot-table-lamp-black-white__0772756_PE756088_S5.JPG%3Ff%3Dxxs&f=1&nofb=1)
## Writing a configuration
Open a Serial Monitor at baudrate 9600 and paste the following json configuration adapted to your needs.
Before sending press the on board button "flash" or connect a button to D0. You will now have 10s to send the configuration. The onboard LED will light up as long as the board reads Serial input. If successful the new configuration should be shown in the terminal.
```
{
"hostname": "your_hostname",
"ssid": "your_ssid",
"pass": "[48..."
}
```
## OTA Updates
Configured in vscode, inside of *platformio.ini* change the board name to what you've set in the configuration. Then upload sketch updates via WiFi by clicking the *Upload* button in *platformIO* under the *evn:esp8266 OTA* configuration