How to request data rather than just subscribe

Is there a way to call data from the particle electron before it’s scheduled publishing?

I’m trying to test some server side things, and it’d be really handy to be able to request data from the electron rather than waiting for it to be published. The variable is static, so the electron itself isn’t really doing anything, but I’d like to test the pathways the data is taking, and because this project is in tandum with someone else, it needs to run all day, every day, and I don’t want to set the publish interval so low that it consumes all my data in a day.

Thanks,

Yes there is. You can request the value of a variable whenever you want if it is registered as a Particle.variable. Check it out in the docs.

2 Likes