Is it normal that the getter function is called twice everytime, or am I doing something wrong?
My application is a power meter which sends readings to the controller every 2 minutes.
When it is time to send a new report, the sketch prints line 1 below and then calls the zunoSendReport() function.
In the getter() function, I have another print statement which prints line 2. But as you can see, the getter function is called twice, leading to line 3 being printed a few milliseconds later.
Code: Select all
1: 22:44:47.032 -> Sending power report. Power : 128
2: 22:44:47.032 -> Getter - Power - Reported value = 128
3: 22:44:47.063 -> Getter - Power - Reported value = 128
If yes, why?