Initial setup:
- install the platformio core CLI tools
- plug an m5atom into your computer
- run
platformio -t upload -e serial
- press and hold the screen, then tap the reset button—the screen will pulse red/white
- connect to the m5atom's wifi network, which will be esp-xxxxxx. Take note of this name!
- visit http://192.168.4.1
- enter wifi credentials and a URL that the device should request
- click 'save'
- click 'Restart device'
- press the screen to send the HTTP request
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.