Skip to content

Commit

Permalink
(2.7.0) Fixed discovery again
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie committed Mar 22, 2021
1 parent bc0a693 commit 7444034
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Espalexa",
"version": "2.6.0",
"version": "2.7.0",
"frameworks": "Arduino",
"keywords": "alexa, esp32, esp8266, control, dimming, echo, color, async",
"description": "Library to control an ESP module with the Alexa voice assistant",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=Espalexa
version=2.6.0
version=2.7.0
author=Christian Schwinne
maintainer=Christian Schwinne
sentence=Library to control an ESP module with the Alexa voice assistant
Expand Down
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ By default, it's possible to add up to a total of 10 devices (read below on how
Each device has a brightness range from 0 to 255, where 0 is off and 255 is fully on.
You can get a percentage from that value using `espalexa.toPercent(brightness);`

FauxmoESP now also supports dimming!
[FauxmoESP](https://github.com/vintlabs/fauxmoESP) is now a great alternative that also supports dimming and setting colors!

**⚠️ Do not use Espalexa in a production environment! The API utilized is known to not be permanently stable and may cease functioning at any point.**

#### How do I install the library?

Expand Down
4 changes: 1 addition & 3 deletions src/Espalexa.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,10 @@ class Espalexa {

void encodeLightId(uint8_t idx, char* out)
{

uint8_t mac[6];
WiFi.macAddress(mac);

sprintf(out, "%02X:%02X:%02X:%02X:%02X:%02X:00:11-%02X", mac[0],mac[1],mac[2],mac[3],mac[4],mac[5], idx);

sprintf_P(out, PSTR("%02X:%02X:%02X:%02X:%02X:%02X:00:11-%02X"), mac[0],mac[1],mac[2],mac[3],mac[4],mac[5], idx);
}

// construct 'globally unique' Json dict key fitting into signed int
Expand Down

0 comments on commit 7444034

Please sign in to comment.