David Presley
New Member
Hi,
The task at hand is collecting data, processing / displaying it locally at 1 minute intervals and then sending it to ThingSpeak at 15 minute intervals via an ESP-01.
Due to the fact the main control circuit is going to be in a metal box, I thought the wf-fi module might do better in a different location, about 3' away.
I can't figure out how to interrupt the main program at 15 minute intervals. Is there a way to write a subroutine that would do this, while still allowing the main code to continue with its' assignments?
If not, the idea was to have an 08M2 running in the 2nd location concurrently, driving the wi-fi module. At the 15 minute interval, it would get the readings from the main chip (14M2) and send the data on to ThingSpeak. From the i2c documentation, it doesn't seem possible for the 2nd (slave) device to run a program and be a slave. Am I wrong?
Any thoughts or suggestions are welcome.
Thanks.
The task at hand is collecting data, processing / displaying it locally at 1 minute intervals and then sending it to ThingSpeak at 15 minute intervals via an ESP-01.
Due to the fact the main control circuit is going to be in a metal box, I thought the wf-fi module might do better in a different location, about 3' away.
I can't figure out how to interrupt the main program at 15 minute intervals. Is there a way to write a subroutine that would do this, while still allowing the main code to continue with its' assignments?
If not, the idea was to have an 08M2 running in the 2nd location concurrently, driving the wi-fi module. At the 15 minute interval, it would get the readings from the main chip (14M2) and send the data on to ThingSpeak. From the i2c documentation, it doesn't seem possible for the 2nd (slave) device to run a program and be a slave. Am I wrong?
Any thoughts or suggestions are welcome.
Thanks.