We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, I'm getting this error in the homebridge log file:
Error setting targetHeatingCoolingState: socket hang up
But my ESP8266 successfully sets the HeatingCoolingState.
Here is my current ESP8266 request handler:
server.on("/targetHeatingCoolingState", handle_targetHeatingCoolingState); void handle_targetHeatingCoolingState () { String value = server.arg("value"); tarState = value.toInt(); Serial.print("\n tarState: "); Serial.println(tarState); }
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hi there, I believe you are having this issue because you are not returning an HTTP 200 OK status response back after receiving a request .
HTTP 200 OK
See line 157 of this script to see how to properly handle requests.
157
You might want to change your code to something like this:
server.on("/targetHeatingCoolingState", handle_targetHeatingCoolingState); void handle_targetHeatingCoolingState () { tarState = server.arg("value").toInt(); server.send(200); Serial.print("\n tarState: " + String(tarState)); }
Sorry, something went wrong.
No branches or pull requests
Hi, I'm getting this error in the homebridge log file:
But my ESP8266 successfully sets the HeatingCoolingState.
Here is my current ESP8266 request handler:
Thanks in advance!
The text was updated successfully, but these errors were encountered: