How to set photon wifi credentials without user intervention (USB only)?

Thank you. The clearCredentials) by firmware upload is a good idea. I already got it to work.
Here is my recipe

  1. Issue serial connection to force Photon in dfu mode (very reliable), e.g.

    stty -d /dev/tty.usbmodem1411 14400; sleep 1

  2. Upload simplest firmware which clears the credentials.

    dfu-util -d 0x2B04:0xD006 -a 0 -s 0x80A0000:leave -D photon-reset.dfu

  3. Wait a few seconds for firmware to run

  4. Again issue serial connection to force Photon in dfu mode

  5. Upload production firmware

    dfu-util -d 0x2B04:0xD006 -a 0 -s 0x80A0000:leave -D photon-prod.dfu

  6. Wait a few seconds for firmware to run

  7. Send new wifi credentials via serial connection

1 Like