We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35e2d58 commit 942846aCopy full SHA for 942846a
Spacebrew.cpp
@@ -136,19 +136,20 @@ void Spacebrew::sendConfig(){
136
137
void Spacebrew::webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {
138
switch(type) {
139
+ switch(type) {
140
case WStype_CONNECTED:
141
onWSOpen();
142
break;
143
case WStype_DISCONNECTED:
- onWSClose();
144
- break;
145
- case WStype_TEXT:
+ onWSClose();
+ break;
146
+ case WStype_TEXT:
147
onWSMessage((char*) payload);
148
- case WStype_ERROR:
149
+ case WStype_ERROR:
150
onWSError((char*) payload);
151
- }
152
+ }
153
}
154
155
void Spacebrew::onWSOpen(){
0 commit comments