void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t lenght) {
delay(1);
switch (type) {
case WStype_TEXT:
DBG_OUTPUT_PORT.printf("[%u] get Text: %s\n", num, payload);
break;
}
Does anyone have any idea how I can send a string such as "x654y33" and be able to turn it into,
int x = 654;
int y = 33;
If i can get it into a String I can manipulate it pretty easy in arduino, but so far, everything I try either does not compile, or it does compile but crashes the esp8266 as soon as the websocket sends data.
Thanks in advance.