Home › Forums › Monitor My Watershed › How to change the default setting of 5 min data send interval
- This topic has 3 replies, 2 voices, and was last updated 2022-01-17 at 12:12 PM by Shannon Hicks.
-
AuthorPosts
-
-
2022-01-16 at 10:00 PM #16270
Hello looks like the default setting to send data from data logger to MMW is 5 min… can we change this to other time intervals? How can we do it
-
2022-01-16 at 10:54 PM #16272
The transmission rate is determined by whatever you put in the sketch of your logger. I don’t know what sketch you’re starting with, but if you’re using one of our examples that we include with the ModularSensors library, then there’s a line about 50 lines down that says this: const uint8_t loggingInterval = 5;
So 5 is the number of minutes between transmissions. Change that number to whatever your desired interval is, keeping in mind that more frequent transmissions will use shorten your battery life, especially if you’ve got power-hungry sensors or minimal solar exposure.
-
2022-01-17 at 7:33 AM #16274
Shannon I am using const uint8_t logging interval and as you changed I can change it to a different logging interval….I wonder if is there is code to collect every 5 min but send every hour or so to mmw to populate all values in the last hour
-
2022-01-17 at 12:12 PM #16278
Changing the interval in that line should work, unless you’ve got something else in your code that’s’ interfering with that. What example sketch did you use for your code?
As for delayed transmission of multiple samples, we haven’t felt the need to do that on any of our stations so it’s not a feature we’ve implemented in our code, but I think there are a few members here on EnviroDIY who have written their own code for sending multiple samples. One of the new additions to the Mayfly v1.0 board is that it now has a separate 8MB flash chip to allow users to write data to a non-volatile memory other than the microSD card (or in addition to) so that you could store that 5 minute data on the flash module but only transmit it and put it on the microSD card every hour. Or write it to both every 5 minutes, but only retrieve it from the flash module on the hour when you want to transmit it. I don’t think we’ll be writing any code to do that anytime soon, but the hardware feature is there if someone wants to implement it.
-
-
AuthorPosts
- You must be logged in to reply to this topic.