Hi everyone, I have a sketch for a pressure transducer (4-20ma), which is working fine. I’m trying to modify two things.
- I would like to have the first x number of tx_intervals to be at a certain period, and then when a counter reaches a number, it swaps to what I would usually have it set to. This is to allow say the first 10 uplinks to be at 5 minute intervals for diagnostics, calibration etc…rather than getting one every 2 hours or similar. I have this successfully working for a weather station, but I assume because the PT goes to sleep, I can’t get it to work…
- I would like this tx_interval to be saved to memory, so that when I make a change (say by downlink), it keeps the setting when power cycled.
Here are a couple of screenshots, happy to provide the entire sketch if required. Thanks in advance.