-->
Page 4 of 5

Re: Mqtt subscribe example that i cobbled together. Flashing

PostPosted: Fri Aug 07, 2015 5:24 pm
by devros
hi i have similar problems can't compile this code, tried different libraries but no luck, Any thoughts?
Code: Select allmqtt_led.ino:15:55: error: no matching function for call to 'PubSubClient::PubSubClient(char*&, int, void (&)(char*, byte*, unsigned int), WiFiClient&)'
mqtt_led.ino:15:55: note: candidates are:
In file included from mqtt_led.ino:1:0:

Re: Mqtt subscribe example that i cobbled together. Flashing

PostPosted: Sat Aug 08, 2015 3:52 am
by pelrun
https://github.com/Imroy/pubsubclient/ is the fork I am using; it's actively being developed and worked immediately for me without any issues.

It supports QoS and even has an example of OTA updating via published message, something I'm using successfully now in my project.

Re: Mqtt subscribe example that i cobbled together. Flashing

PostPosted: Thu Sep 17, 2015 4:57 am
by mugginsjm
Hi
I'm not sure if this is the right place but...
I am trying to hook into Really Small Message Broker from ESP Pubsubclient but server complains of “unsupported protocol MQTT version 4” Anyone else?
thanks

Re: Mqtt subscribe example that i cobbled together. Flashing

PostPosted: Mon Feb 20, 2017 4:51 pm
by paysan
Arduino: 1.6.8 (Linux), Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"
I got this error. Please tell me what's wrong.
Wim


leeg:15: error: 'callback' was not declared in this scope
PubSubClient client(server, 1883, callback, wifiClient);
^
exit status 1
'callback' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.