Can lipo be specified as power source in code?

Not necessarily. You can use OTA updates (of your user firmware and DeviceOS) without Particle Cloud. I posted a working example here: OTA over HTTP working example!

2 Likes