Thank you. The clearCredentials) by firmware upload is a good idea. I already got it to work.
Here is my recipe
-
Issue serial connection to force Photon in dfu mode (very reliable), e.g.
stty -d /dev/tty.usbmodem1411 14400; sleep 1
-
Upload simplest firmware which clears the credentials.
dfu-util -d 0x2B04:0xD006 -a 0 -s 0x80A0000:leave -D photon-reset.dfu
-
Wait a few seconds for firmware to run
-
Again issue serial connection to force Photon in dfu mode
-
Upload production firmware
dfu-util -d 0x2B04:0xD006 -a 0 -s 0x80A0000:leave -D photon-prod.dfu
-
Wait a few seconds for firmware to run
-
Send new wifi credentials via serial connection