Here is the situation:
I setup a python script to compute z-score for a light sensor connected at A0 pin in Digital Ocean droplet. The droplet reads from A0 and prints the Z-score and the value at A0 every 10 seconds.
At the same time, I chanced upon an older browser tab in my computer that had my previous project creating a graph of a temperature sensor that had been previously connected at A0 pin, but now no longer there. The graph was still plotting based on the value of A0 from the light sensor. A new data point was being added to the plot every 5 minutes.
Questions:
- Is there any code that gets deployed into the Bolt iot module? Or,
- Is the code in the Bolt iot module constant and the javascript code that we write on Bolt cloud specifies what pin values need to be read/ written?
- How does the bolt iot module know at what frequency data needs to be sent?
3a… How does the module know where to send the data?
3b… How does the bolt cloud communicate with the bolt iot module?
3c… How does the api call from Digital Ocean droplet get routed to the bolt iot module?