I uploaded a new firmware into my product page. This product only has one device (by the moment)
The problem is that I assigned the firmware and locked but the device still not updated 18hours after.
The device wakeup every 15mins and after sending the info, sleeps again.
I’m doing something wrong? the script wakeup in semiautomatic mode, and when the info is prepared, the machine connects to particle and sends, could be this the problem?
The device needs some time after reconnect to realise there is an update pending and then a further few moments to actually download and flash the new firmware.
If you are going back to sleep too quickly the update will never stick.
After connecting, and before going to sleep, there’s virtually no time to even notice there’s updated firmware, let alone download/flash it. Try giving it a bigger delay?
That's actually a very elegant solution! I actually run my while loop with particle.process() every time the Electron wakes up (which eats up battery). Having it just do that once a day is really clever. Cheers!
Thanks Eduard! That indeed does work but I found through experimentation that you don’t need more than 30 seconds to trigger the update; that’s good to know if you’re trying to conserve battery.
My machine wakes up every 15 mins, so when the machine wakes up between this time the machine waits to be updated, when wakes up out of range the machine does the normal reading and sending