![]() ![]() ![]() But for an unknown reason, after a few seconds, it keeps sending data as if time_elapsed never changed to false. On the gateway side, I can see that the node successfully registers and gets its ID. However, there is a problem right now (otherwise, I wouldn't post in the "troubleshooting" section ). Power_adc_disable() // Analog to digital converter TIMSK2 = (1<<OCIE2A) // Enable compare match interruptĪttachInterrupt(digitalPinToInterrupt(3), sensor_interrupt, RISING) OCR2A = 239 // Count up to 240 (zero relative!) variable to count the number of overflowsĪSSR = (1<<AS2) // Make Timer2 asynchronous ![]() Interrupt triggered on Timer2 overflow MyMessage measure_msg(CHILD_ID, V_VOLUME) And 5 minutes, no more (>= 5'01"), no less ( I would like to send the amount of water consumed "reliably" every 5 minutes to avoid spamming the gateway and to save energy.It should consume the minimum amount of power and therefore sleep as much as possible. The node will be powered on batteries.My new goal is know how much water is consumed in the house, still via HomeAssistant. I'm back here with an exciting project and an exciting issue, after my post regarding the "pilot wire" (which works well by the way)! ![]()
0 Comments
Leave a Reply. |