kopia lustrzana https://github.com/dl9rdz/rdz_ttgo_sonde
support development with platformio (in addition to Arduino IDE)
rodzic
1ea3bdd0ee
commit
1954cafa6f
|
@ -3,7 +3,6 @@
|
|||
#include <WiFi.h>
|
||||
#include <WiFiUdp.h>
|
||||
#include <ESPAsyncWebServer.h>
|
||||
#include <WebSockets.h>
|
||||
#include <SPIFFS.h>
|
||||
//#include <U8x8lib.h>
|
||||
//#include <U8g2lib.h>
|
||||
|
@ -838,32 +837,6 @@ void onWsEvent(AsyncWebSocket * server, AsyncWebSocketClient * client, AwsEventT
|
|||
Serial.println("Client disconnected");
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
void onWebSocketEvent(uint8_t clientNum, WStype_t type, uint8_t *payload, size_t length) {
|
||||
switch (type) {
|
||||
case WStype_DISCONNECTED:
|
||||
Serial.printf("[%u] WS client disconnected\n", clientNum);
|
||||
break;
|
||||
case WStype_CONNECTED:
|
||||
{
|
||||
IPAddress ip = webSocket.remoteIP(clientNum);
|
||||
Serial.printf("[%u] WS client connection from %s\n", clientNum, ip.toString().c_str());
|
||||
}
|
||||
break;
|
||||
case WStype_TEXT:
|
||||
//
|
||||
{
|
||||
char msg[80];
|
||||
Serial.printf("[%u] WS client sent me some text: %s\n", clientNum, payload);
|
||||
snprintf(msg, 80, "You sent me: %s\n", payload);
|
||||
webSocket.sendTXT(clientNum, msg);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
const char* PARAM_MESSAGE = "message";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
const char *version_name = "rdzTTGOsonde";
|
||||
const char *version_id = "devel20201118";
|
||||
const char *version_id = "devel20201120";
|
||||
const int SPIFFS_MAJOR=2;
|
||||
const int SPIFFS_MINOR=4;
|
||||
|
|
|
@ -21,7 +21,6 @@ lib_deps_builtin =
|
|||
lib_deps_external =
|
||||
olikraus/U8g2 @ ^2.28.8
|
||||
AXP202X_Library
|
||||
links2004/WebSockets @ ^2.3.1
|
||||
stevemarple/MicroNMEA @ ^2.0.3
|
||||
nkawu/TFT 22 ILI9225 @ ^1.4.4
|
||||
me-no-dev/ESP Async WebServer @ ^1.2.3
|
||||
|
|
Ładowanie…
Reference in New Issue