Protoneer / WifiPixels

WifiPixels are a combination of a ESP8266 Wifi unit combined with a NeoPixel(Addressable RGB) LED ring all in one.
http://wiki.protoneer.co.nz/WifiPixels
GNU General Public License v2.0
130 stars 23 forks source link

Repo Clone build fails #8

Open uchobby opened 8 years ago

uchobby commented 8 years ago

Awesome project, thank you for sharing. I have a similar project underway and would very much like to study your code. Unfortunately you have not described the steps necessary to compile you project into a usable firmware to load into an ESP module.

Doing a fresh clone of the repo, opening the WifiPixels_MQTT_NeoPixel example with the Arduino IDE and building fails with a large number of errors.

First attempt to fix was to copy file from src to the directory of the arduino project, build again fails with C:\Users\DAVIDF~1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.cpp:12:32: error: no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&)' PubSubClient mqttClient(wclient); ^ C:\Users\DAVIDF~1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.cpp:12:32: note: candidates are: In file included from C:\Users\DAVIDF~1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.h:4:0, from C:\Users\DAVIDF~1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.cpp:4: C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:47:4: note: PubSubClient::PubSubClient(String, uint16_t) PubSubClient(String hostname, uint16_t port = 1883); ^ C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:47:4: note: no known conversion for argument 1 from 'WiFiClient' to 'String' C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:46:4: note: PubSubClient::PubSubClient(IPAddress&, uint16_t) PubSubClient(IPAddress &ip, uint16_t port = 1883); ^ C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:46:4: note: no known conversion for argument 1 from 'WiFiClient' to 'IPAddress&' C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:43:4: note: PubSubClient::PubSubClient() PubSubClient(); ^ C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:43:4: note: candidate expects 0 arguments, 1 provided C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:16:7: note: PubSubClient::PubSubClient(const PubSubClient&) class PubSubClient { ^ C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:16:7: note: no known conversion for argument 1 from 'WiFiClient' to 'const PubSubClient&' C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:16:7: note: PubSubClient::PubSubClient(PubSubClient&&) C:\Users\User Name\Documents\Arduino\libraries\pubsubclient-master\src/PubSubClient.h:16:7: note: no known conversion for argument 1 from 'WiFiClient' to 'PubSubClient&&' Error compiling.