forked from btclock/btclock_v3
More code optimizations, remove unnecessary checks
This commit is contained in:
parent
66c662e1fd
commit
698c3a3a43
5 changed files with 24 additions and 20 deletions
|
@ -34,11 +34,12 @@ namespace V2Notify
|
|||
switch (type)
|
||||
{
|
||||
case WStype_DISCONNECTED:
|
||||
Serial.printf("[WSc] Disconnected!\n");
|
||||
Serial.print(F("[WSc] Disconnected!\n"));
|
||||
break;
|
||||
case WStype_CONNECTED:
|
||||
{
|
||||
Serial.printf("[WSc] Connected to url: %s\n", payload);
|
||||
Serial.print(F("[WSc] Connected to url:"));
|
||||
Serial.println((char *)payload);
|
||||
|
||||
JsonDocument response;
|
||||
|
||||
|
@ -81,7 +82,8 @@ namespace V2Notify
|
|||
break;
|
||||
}
|
||||
case WStype_TEXT:
|
||||
Serial.printf("[WSc] get text: %s\n", payload);
|
||||
Serial.print(F("[WSc] get text: "));
|
||||
Serial.println((char *)payload);
|
||||
|
||||
// send message to server
|
||||
// webSocket.sendTXT("message here");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue