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
|
||||
case the OBS instance is still running.
|
||||
|
||||
We do, however, set the LEDs to the "error" state, to
|
||||
indicate we don't currently know what OBS is showing.
|
||||
We can't set the LEDs to "error", because if someone
|
||||
quits OBS, we will get disconnected.
|
||||
*/
|
||||
set_error();
|
||||
break;
|
||||
|
||||
case WStype_CONNECTED:
|
||||
Serial.printf("[WS] connected to %s\n", payload);
|
||||
// Find out if we need authentication
|
||||
#ifdef OBS_PASS
|
||||
// Find out if we need authentication
|
||||
webSocket.sendTXT("{\"request-type\":\"GetAuthRequired\",\"message-id\":\"1\"}");
|
||||
#else
|
||||
webSocket.sendTXT("{\"request-type\":\"GetCurrentScene\",\"message-id\":\"3\"}");
|
||||
|
|
Loading…
Reference in a new issue