Skip to content

Repo Clone build fails #8

Description

@uchobby

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&)'
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\DAVIDF1\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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions