WiFI-RGBWW-module icon indicating copy to clipboard operation
WiFI-RGBWW-module copied to clipboard

Compilation Instructions

Open ge0rg opened this issue 9 years ago • 3 comments

Hi,

I wanted to try out the code using Arduino IDE 1.6.5, and ran into some trouble finding the right dependencies:

  • The Arduino MQTT library depends on SleepyDog that doesn't work on ESP8266
  • The MQTT library by Joey Gaehwiler is specific to the Arduino Yun
  • The PubSubClient libray by Nick O'Leary, while having the same header name, appears to be C only, so the "MQTT::Publish" class is unknown:
WiFi_RGBWW_module_mqtt_example:66: error: 'MQTT' does not name a type
WiFi_RGBWW_module_mqtt_example:66: error: expected unqualified-id before '&' token
WiFi_RGBWW_module_mqtt_example:66: error: expected ')' before '&' token
WiFi_RGBWW_module_mqtt_example:66: error: expected initializer before 'pub'
'MQTT' does not name a type

Could you please add the name, source repository and version of the MQTT library you used to the README?

Thanks very much :)

ge0rg avatar Sep 23 '15 16:09 ge0rg

https://github.com/Imroy/pubsubclient

check the bottom of the reference page of the ESP8266 arduino for all compatible libraries: http://arduino.esp8266.com/versions/1.6.5-947-g39819f0/doc/reference.html

4ndreas avatar Sep 24 '15 00:09 4ndreas

hi andreas

i tried adding the above library still getting the below error while compiling

no matching function for call to 'PubSubClient::PubSubClient(IPAddress&)'

im on arduino ide 1.6.5

sasankch avatar Aug 05 '16 07:08 sasankch

same here!

ghost avatar Jul 02 '17 23:07 ghost