I have an electron set to wake periodically from deep sleep and publish some data such as location and battery info. I want to be able to tell it to use an attached GPS module for location data occasionally. Is there a way to use the console to set a variable that the electron can read when it wakes?
You cannot set a
What you can do is call a
Particle.publish() an even to which the device has hooked up a
Particle.subscribe() which then updates the underlying variable.