-
Notifications
You must be signed in to change notification settings - Fork 25
Description
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\DAVIDF1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.cpp:12:32: error: no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&)'1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.cpp:12:32: note: candidates are:
PubSubClient mqttClient(wclient);
^
C:\Users\DAVIDF
In file included from C:\Users\DAVIDF1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.h:4:0,1\AppData\Local\Temp\build3103318990395357584.tmp\mqtt_helper.cpp:4:
from C:\Users\DAVIDF
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.