Author Topic: Can't configure Wi-Fi after "restoring your oak to factory setting"  (Read 2646 times)

darkstarsa

  • Newbie
  • *
  • Posts: 1
Good morning fellow Oakians

I don't know if the following is the cause of my issue. I cannot store my wifi settings on my oak. I is perpetually blinking 3 burst led then pause.

So I finally got myself a uart and got the latest firmware on my oak successful. I've been following the instructions from: https://github.com/digistump/OakRestore. However I have a problem. The following text is written on that page:

"This will not restore an Oak that has had its Particle Config overwritten at 0x100000 and 0x201000 - a device where that has occured can be partially restored by this method but then will need its device id set via serial, and you'll need to have recorded it previously. Then connect at 115200 baud and send set\n40\n{"device-id":"123456789012345678901234"}\n where 123456789012345678901234 is replaced by your device-id. You can also send a raw POST to 192.168.0.1/set with the same JSON while connected to the AP of the Oak"

I do know my device-id however the rest of that text didn't make much sense to me. How do I: "Then connect at 115200 baud and send set\n40\n{"device-id":"my device id"}\n"

And then: "You can also send a raw POST to 192.168.0.1/set with the same JSON while connected to the AP of the Oak""

Any assistance would be greatly appreciated.

PeterF

  • Hero Member
  • *****
  • Posts: 881
Re: Can't configure Wi-Fi after "restoring your oak to factory setting"
« Reply #1 on: April 26, 2017, 01:13:38 am »
In a nutshell, you use a serial terminal program like putty or Termite (or pretty much any other one around... can even cheat and use the Serial Monitor in the Arduino IDE in a pinch), connect to you USB to Serial (UART) at 115200 baud, and when you have the Oak connected up (just like how you did to program it), but not in upload mode (i.e. power it up normally), you would  type in "set\n40\n{"device-id":"my device id"}\n" or set [press enter] {"device-id":"my device id"} [press enter].

Alternately, you would use something like Postman on Google Chrome to allow you to send the POST message of {"device-id":"your-device-id"} to 192.168.0.1/set. Just don't me any more about that... has been more than a few months since I fiddled with Postman and the POST/JSON stuff!

Does that clear things up a bit? Or have I left you a bit more confused?  ;D  :o