Skip to content

Commit 7e42afb

Browse files
committed
(2.4.7) Fix ESP32
1 parent 372c0ad commit 7e42afb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

library.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Espalexa
2-
version=2.4.6
2+
version=2.4.7
33
author=Christian Schwinne
44
maintainer=Christian Schwinne
55
sentence=Library to control an ESP module with the Alexa voice assistant

src/Espalexa.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111
/*
1212
* @title Espalexa library
13-
* @version 2.4.6
13+
* @version 2.4.7
1414
* @author Christian Schwinne
1515
* @license MIT
1616
* @contributors d-999
@@ -49,7 +49,7 @@
4949
#include <WiFiUdp.h>
5050

5151
#ifdef ESPALEXA_DEBUG
52-
#pragma message "Espalexa 2.4.6 debug mode"
52+
#pragma message "Espalexa 2.4.7 debug mode"
5353
#define EA_DEBUG(x) Serial.print (x)
5454
#define EA_DEBUGLN(x) Serial.println (x)
5555
#else
@@ -157,7 +157,7 @@ class Espalexa {
157157

158158
sprintf_P(buf, PSTR("{\"state\":{\"on\":%s,\"bri\":%u%s%s,\"alert\":\"none%s\",\"mode\":\"homeautomation\",\"reachable\":true},"
159159
"\"type\":\"%s\",\"name\":\"%s\",\"modelid\":\"%s\",\"manufacturername\":\"Philips\",\"productname\":\"E%u"
160-
"\",\"uniqueid\":\"%u\",\"swversion\":\"espalexa-2.4.6\"}")
160+
"\",\"uniqueid\":\"%u\",\"swversion\":\"espalexa-2.4.7\"}")
161161

162162
, (dev->getValue())?"true":"false", dev->getLastValue()-1, buf_col, buf_ct, buf_cm, typeString(dev->getType()),
163163
dev->getName().c_str(), modelidString(dev->getType()), static_cast<uint8_t>(dev->getType()), encodeLightId(deviceId+1));
@@ -182,7 +182,7 @@ class Espalexa {
182182
}
183183
res += "\r\nFree Heap: " + (String)ESP.getFreeHeap();
184184
res += "\r\nUptime: " + (String)millis();
185-
res += "\r\n\r\nEspalexa library v2.4.6 by Christian Schwinne 2020";
185+
res += "\r\n\r\nEspalexa library v2.4.7 by Christian Schwinne 2020";
186186
server->send(200, "text/plain", res);
187187
}
188188
#endif
@@ -299,7 +299,7 @@ class Espalexa {
299299

300300
espalexaUdp.beginPacket(espalexaUdp.remoteIP(), espalexaUdp.remotePort());
301301
#ifdef ARDUINO_ARCH_ESP32
302-
espalexaUdp.write((uint8_t*)buf, response.length());
302+
espalexaUdp.write((uint8_t*)buf, strlen(buf));
303303
#else
304304
espalexaUdp.write(buf);
305305
#endif

0 commit comments

Comments
 (0)