more ESP32 stuff

This commit is contained in:
Links
2018-02-06 21:36:44 +01:00
parent d340c89b09
commit f62aa6478d
2 changed files with 5 additions and 8 deletions

View File

@ -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;