WiFI-RGBWW-module
WiFI-RGBWW-module copied to clipboard
Compilation Instructions
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 :)
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
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
same here!