particle-iot / docs

Documentation for Particle
https://docs.particle.io
Other
144 stars 273 forks source link

Particle.connect/disconnect docs suggestion #445

Open towynlin opened 7 years ago

towynlin commented 7 years ago

https://community.particle.io/t/unlocked-device-in-company-approved-device-wont-upgrade-to-released-firmware-unless-it-is-reset/24508/4?u=zachary

"In most cases, you do not need to call Particle.connect(); it is called automatically when the device turns on. Typically you only need to call Particle.connect() after disconnecting with Particle.disconnect() or when you change the system mode."

My understanding now is that you must call Particle.disconnect() and Particle.connect() if you expect firmware updates to occur automatically from a corporate dashboard. In addition, it does sound like you need a minimum time of being disconnected in order for a connect to work properly. If I'm understanding this correctly, you may need to document that as well.

monkbroc commented 7 years ago

From the discussion today the OTA happens on handshake. Do we have a known way to trigger a new handshake or another way to force the firmware to check for new product firmware? Particle.connect doesn't look like the right call for this.