Skip to content

Commit 7e9ed22

Browse files
committed
Bump version in Arduino and fix compilation erros
1 parent f599315 commit 7e9ed22

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/ClientServer/Client/Client.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ static void replyToServer(void* arg) {
2525
/* event callbacks */
2626
static void handleData(void* arg, AsyncClient* client, void *data, size_t len) {
2727
Serial.printf("\n data received from %s \n", client->remoteIP().toString().c_str());
28-
Serial.write((char*)data, len);
28+
Serial.write((uint8_t*)data, len);
2929

3030
os_timer_arm(&intervalTimer, 2000, true); // schedule for reply to server at next 2s
3131
}

examples/ClientServer/Server/Server.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static void handleError(void* arg, AsyncClient* client, int8_t error) {
1616

1717
static void handleData(void* arg, AsyncClient* client, void *data, size_t len) {
1818
Serial.printf("\n data received from client %s \n", client->remoteIP().toString().c_str());
19-
Serial.write((char*)data, len);
19+
Serial.write((uint8_t*)data, len);
2020

2121
// reply to client
2222
if (client->space() > 32 && client->canSend()) {

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=ESP AsyncTCP
2-
version=1.1.0
2+
version=1.2.0
33
author=Me-No-Dev
44
maintainer=Me-No-Dev
55
sentence=Async TCP Library for ESP8266 and ESP31B

0 commit comments

Comments
 (0)