don't set LEDs to error when disconnecting
This commit is contained in:
parent
8c47d1c0d3
commit
4345c27453
1 changed files with 3 additions and 4 deletions
|
@ -68,16 +68,15 @@ void handleWebSocketEvent(WStype_t type, uint8_t * payload, size_t length) {
|
||||||
like that. It is important we don't disable the LEDs, in
|
like that. It is important we don't disable the LEDs, in
|
||||||
case the OBS instance is still running.
|
case the OBS instance is still running.
|
||||||
|
|
||||||
We do, however, set the LEDs to the "error" state, to
|
We can't set the LEDs to "error", because if someone
|
||||||
indicate we don't currently know what OBS is showing.
|
quits OBS, we will get disconnected.
|
||||||
*/
|
*/
|
||||||
set_error();
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case WStype_CONNECTED:
|
case WStype_CONNECTED:
|
||||||
Serial.printf("[WS] connected to %s\n", payload);
|
Serial.printf("[WS] connected to %s\n", payload);
|
||||||
// Find out if we need authentication
|
|
||||||
#ifdef OBS_PASS
|
#ifdef OBS_PASS
|
||||||
|
// Find out if we need authentication
|
||||||
webSocket.sendTXT("{\"request-type\":\"GetAuthRequired\",\"message-id\":\"1\"}");
|
webSocket.sendTXT("{\"request-type\":\"GetAuthRequired\",\"message-id\":\"1\"}");
|
||||||
#else
|
#else
|
||||||
webSocket.sendTXT("{\"request-type\":\"GetCurrentScene\",\"message-id\":\"3\"}");
|
webSocket.sendTXT("{\"request-type\":\"GetCurrentScene\",\"message-id\":\"3\"}");
|
||||||
|
|
Loading…
Reference in a new issue