Saving wifi and mdash token in mos.yml

#1

When using a device with Mdash, I would like the device to start and know the wifi credentials and the mdash token. Can this be put into the mos.yml file, so that it connects to mdash as soon as it boots? I assume this must be possible, or does it require me to code it in the FW?

#2

Sure, you can add in the config_schema section:

  - ["wifi.ap.enable", false]
  - ["wifi.sta.enable", true]
  - ["wifi.sta.ssid", "SSID"]
  - ["wifi.sta.pass", "PASS"]
  - ["dash.enable", true]
  - ["dash.token", "DEVICE_TOKEN"]
1 Like
#3

Perfect thanks very much!