-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sometimes, the before() is not called. #16
Comments
Could be related to the other issue about a failed MQTT connection? |
@njbuch I will check and update you |
@njbuch This is the sequence,
In your example, the serial port is no initialized in setup. It is initialized when calling |
I can confirm the sequence you write, when the device is booted first time after flash, but if the device is off and then powered on, the before() is never called and sensors does not work.... |
No worries on this one, I have solved it by:
|
I have realized that the reason for some erronous readings from some sensors, is due to the fact that the sensor-init is never done.
It seems that the device starts probing sensors without the before() or setup() is called. In the above, these two functions are declared:
and
The text was updated successfully, but these errors were encountered: