Skip to content

Commit

Permalink
Update library files
Browse files Browse the repository at this point in the history
closes #44
  • Loading branch information
knolleary committed Jan 31, 2016
1 parent 36bb1ff commit 4739ca0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions library.json
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"
]
}
2 changes: 1 addition & 1 deletion library.properties
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.
Expand Down

3 comments on commit 4739ca0

@friendsonearth
Copy link

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]

PubSubClient& setCallback(MQTT_CALLBACK_SIGNATURE);

              ^

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

@knolleary
Copy link
Owner Author

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

@friendsonearth
Copy link

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

Please sign in to comment.