Skip to content

Commit

Permalink
fixes for latest ESP8266 release
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoschwartz committed Jun 8, 2021
1 parent adafe84 commit bcb3e35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions aREST.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License:
http://creativecommons.org/licenses/by-sa/4.0/
Version 2.9.4
Version 2.9.5
Changelog:
Version 2.9.5: Compatibility with latest ESP8266 library
Version 2.9.4: Publish() fixes
Version 2.9.3: Compatibility fix
Version 2.9.2: Fixes for cloud examples
Expand Down Expand Up @@ -371,6 +372,7 @@ void setKey(char* api_key) {
// Build topics IDs
in_topic = id + String(api_key) + String("_in");
out_topic = id + String(api_key) + String("_out");
publish_topic = id + String(api_key) + String("_event");

// strcpy(in_topic, inTopic.c_str());
// strcpy(out_topic, outTopic.c_str());
Expand Down Expand Up @@ -1603,7 +1605,7 @@ void set_id(const String& device_id) {
// Build topics IDs
in_topic = randomId + id + String("_in");
out_topic = randomId + id + String("_out");
publish_topic = id + String(api_key) + String("_event");
publish_topic = randomId + id + String("_event");

// strcpy(in_topic, inTopic.c_str());
// strcpy(out_topic, outTopic.c_str());
Expand All @@ -1617,6 +1619,7 @@ void set_id(const String& device_id) {
// Build topics IDs
in_topic = id + String(proKey) + String("_in");
out_topic = id + String(proKey) + String("_out");
publish_topic = id + String(proKey) + String("_event");

// strcpy(in_topic, keyInTopic.c_str());
// strcpy(out_topic, keyOutTopic.c_str());
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=aREST
version=2.9.4
version=2.9.5
author=Marco Schwartz
maintainer=Marco Schwartz <[email protected]>
sentence=RESTful API for the Arduino platform.
Expand Down

0 comments on commit bcb3e35

Please sign in to comment.