It would be great if I could also update the code via OTA, but I'm a bit confused as to how this would work, since the device is not currently spending any time on the same network as my PC.
Since one of the sensors is an accelerometer, I could, perhaps, turn the thing upside down, say, to get it into OTA mode.
As I say, I'm not 100% clear how the OTA scheme works. Is it like a bootloader that gets a look-in at power-up, or does it require some code added to the main app?
Any kind advice gratefully received.