forked from Links2004/arduinoWebSockets
more ESP32 stuff
This commit is contained in:
@ -14,22 +14,20 @@
|
||||
#elif defined(ESP32)
|
||||
#include <WiFi.h>
|
||||
#include <WiFiMulti.h>
|
||||
#include <WiFiClientSecure.h>
|
||||
WiFiMulti WiFiMulti;
|
||||
|
||||
HardwareSerial Serial1(2);
|
||||
#endif
|
||||
|
||||
#include <WebSocketsClient.h>
|
||||
|
||||
#include <Hash.h>
|
||||
|
||||
WebSocketsClient webSocket;
|
||||
|
||||
#define USE_SERIAL Serial1
|
||||
|
||||
#ifndef ESP8266
|
||||
void hexdump(const void *mem, uint32_t len, uint8_t cols = 16);
|
||||
#endif
|
||||
|
||||
void webSocketEvent(WStype_t type, uint8_t * payload, size_t length) {
|
||||
|
||||
switch(type) {
|
||||
@ -103,7 +101,6 @@ void loop() {
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifndef ESP8266
|
||||
void hexdump(const void *mem, uint32_t len, uint8_t cols) {
|
||||
const uint8_t* src = (const uint8_t*) mem;
|
||||
|
Reference in New Issue
Block a user