Hello. Is there a way where I can publish my analog read input every 10 millisec. when I use delay(10) in my code the data is not visible in the cloud platform. However if I use delay(1000) i can see live streaming of data. Any suggestions will help.
According to the docs, that’s expected behavior:
“NOTE: Currently, a device can publish at rate of about 1 event/sec, with bursts of up to 4 allowed in 1 second. Back to back burst of 4 messages will take 4 seconds to recover.”
https://docs.particle.io/reference/firmware/photon/#particle-publish-
You might want to look at streaming that data over a local direct connection. There are examples in the forums, if you search for them
Hi Moors7,
Are there alternate methods for streaming this kind of data over the internet? (and not with local direct connection).
I have successfully streamed data from my Photon to Android phone using TCP, with both devices connected to the same router. However I am not sure where to start when both are connected to separate WiFi networks.
I can tolerate some latency, just as long as all the data gets transferred.
Thanks,
Ben
TCP would work just as well as long you get a route between the two devices.