Closed jaka87 closed 5 years ago
It might very well be that arduino reset itself because of problem with serial print buffer. Some changes have been made to enable/disable debug mode. Few days of testing will show if error is fixed...
I tested with turned off serial print and increased posting frequency (to increased chances of error if issue still persist) and it appears the issue is still there
Some debugging has showed that error is caused by arduino board reset. Now the question is, if reset is because hardware malfunction or memory error. I will make an update in the evening with the function to display available memory on every post to see which one is it.
Latest commit seems to fix the issue. The problem was that somewhere down the line i removed the water sensor initial command by mistake. I also split water and temperature sensor reading to two different functions. Now battery is much more stable, error haven't shown up until now. Hope this is finally fixed.
After minor software update and checking the pins the error didn't appear in few days. Mark as solved. Fingers crossed.
Once or twice a day data is send twice in matter of 30-60 seconds of one another, while second upload contains only one measurement. Im not sure exactly where the problem occurs or if its a problem with my code or SIM800 library.
The second upload contains only one measurement so wind speed and gust are identical. This should not have happen. I tried to add locking mechanism in loop function but that didn't solve the problem. Now I added second if condition in senddata() hoping it will solve it...
It could be caused by random arduino board reset. Im looking into it. Opinions welcomed.