Skip to content

ESP32 restarting continually after HomeSpan starts up #830

Closed Answered by HomeSpan
clokey asked this question in Q&A
Discussion options

You must be logged in to vote

I reviewed your code in more detail and think I spotted the problem: see line 15 of the sensor.h file - looks like you are redefining occupied as a boolean, which masks the version of occupied that points to the SpanCharacterstic. As a result, the setVal() call in the loop() will blow up since the pointer is never instantiated.

Perhaps this was a line you intended for debugging purposes?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@clokey
Comment options

@HomeSpan
Comment options

@clokey
Comment options

@HomeSpan
Comment options

Answer selected by clokey
@clokey
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants