-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
closes #44
- Loading branch information
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "PubSubClient", | ||
"keywords": "ethernet, mqtt, m2m, iot", | ||
"description": "A client library for MQTT messaging. MQTT is a lightweight messaging protocol ideal for small devices. This library allows you to send and receive MQTT messages. It supports the latest MQTT 3.1.1 protocol and can be configured to use the older MQTT 3.1 if needed. It supports all Arduino Ethernet Client compatible hardware, including the Intel Galileo/Edison, ESP8266 and TI CC3000.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/knolleary/pubsubclient.git" | ||
}, | ||
"version": "2.5", | ||
"exclude": "tests", | ||
"examples": "examples/*/*.ino", | ||
"frameworks": "arduino", | ||
"platforms": [ | ||
"atmelavr", | ||
"espressif" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name=PubSubClient | ||
version=2.4 | ||
version=2.5 | ||
author=Nick O'Leary <[email protected]> | ||
maintainer=Nick O'Leary <[email protected]> | ||
sentence=A client library for MQTT messaging. | ||
|
4739ca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I download v2.5, and run all the sample codes, but give me the same error on line :
PubSubClient client(server, 1883, callback, ethClient);
and the error msg said:
Arduino: 1.6.6 (Windows 7), Board: "Arduino Duemilanove or Diecimila, ATmega328"
C:\Users\James\Documents\Arduino\libraries\pubsubclient-2.5\examples\mqtt_basic\mqtt_basic.ino: In function 'void setup()':
mqtt_basic:64: error: invalid conversion from 'void ()(char, byte_, unsigned int) {aka void ()(char, unsigned char_, unsigned int)}' to 'void ()(char, uint8_t_, uint32_t) {aka void ()(char, unsigned char_, long unsigned int)}' [-fpermissive]
client.setCallback(callback);
In file included from C:\Users\James\Documents\Arduino\libraries\pubsubclient-2.5\examples\mqtt_basic\mqtt_basic.ino:18:0:
C:\Users\James\Documents\Arduino\libraries\pubsubclient-2.5\src/PubSubClient.h:121:18: error: initializing argument 1 of 'PubSubClient& PubSubClient::setCallback(void ()(char, uint8_t*, uint32_t))' [-fpermissive]
exit status 1
invalid conversion from 'void ()(char, byte_, unsigned int) {aka void ()(char, unsigned char_, unsigned int)}' to 'void ()(char, uint8_t_, uint32_t) {aka void ()(char, unsigned char_, long unsigned int)}' [-fpermissive]
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
any idea how I can fix it
Thanks
4739ca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@friendsonearth hmm, a breaking change slipped through that I failed to spot. I have reverted the change and released 2.6. It should be available in the Arduino package manager at some point today.
Apologies for the distruption
4739ca0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks and works R-2.6