ubidots / ubidots-python

A python API client for Ubidots
ubidots.com/docs/libraries/python.html
MIT License
30 stars 13 forks source link

Multiple scripts accessing the same datasource varialbles #17

Open gauthampughazhendhi opened 6 years ago

gauthampughazhendhi commented 6 years ago

I have two python scripts using the same data source variables for reading the updated values in my raspberry pi 3, each with a while loop in it to detect any change in these variables. When I run both the scripts at the same time I get a JSON decode error but If I run them individually there is no problem. So I need to terminate a script before running other. Each script reads the value of a different variable and listens for a change in them.