Initial setup:
- install the platformio core CLI tools
- plug a huzzah32 into your computer
- run
platformio -t upload -e serial
- connect to the device's wifi network, which will be esp-xxxxxx. Take note of this name!
- visit http://192.168.4.1
- enter wifi credentials and some messages that the device should request. separate messages with full stops.
- click 'save'
- click 'Restart device'
To configure your machine to send firmware updates over WLAN:
- open platformio.ini
- set
upload_port
to the name of the device's wifi network, with '.local' appended - set the
--auth
flag inupload_flags
to the password for the device's wifi network
Now you can run platformio -t upload -e ota
to update the device as long as the device is reachable from your computer's network.