Skip to content

Commit d2fec40

Browse files
committed
fixed UDP problems on ESP32
1 parent 9b8cc74 commit d2fec40

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"maintainer": true
1414
}
1515
],
16-
"version": "2.0.4",
16+
"version": "2.0.5",
1717
"frameworks": "arduino",
1818
"platforms": [
1919
"espressif8266",

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name=SinricPro
2-
version=2.0.4
3-
author=Boris Jäger <[email protected]>
4-
maintainer=Boris Jäger <[email protected]>
2+
version=2.0.5
3+
author=Boris Jaeger <[email protected]>
4+
maintainer=Boris Jaeger <[email protected]>
55
sentence=An Arduino SDK for https://sinric.pro
66
paragraph=Simple way to control your IOT development boards like ESP8226 or ESP32 with Amazon Alexa or Google Home
77
category=Communication

src/SinricPro.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ void SinricProClass::handle() {
108108
if (!isConnected()) connect();
109109
_websocketListener.handle();
110110
_udpListener.handle();
111-
_ntp.update();
112111

113112
handleRequest();
114113
handleSendQueue();

src/SinricProUDP.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ void udpListener::begin(SinricProQueue_t* receiveQueue) {
4040
}
4141

4242
void udpListener::handle() {
43+
if (!_udp.available()) return;
4344
int len = _udp.parsePacket();
4445
if (len) {
4546

46-
char buffer[512];
47-
int n = _udp.read(buffer, 512);
47+
char buffer[1024];
48+
int n = _udp.read(buffer, 1024);
4849
buffer[n] = 0;
4950
SinricProMessage* request = new SinricProMessage(IF_UDP, buffer);
5051
DEBUG_SINRIC("[SinricPro:UDP]: receiving request\r\n");

0 commit comments

Comments
 (0)