danielsen2009 / homebridge-mqtt-acessories Goto Github PK
View Code? Open in Web Editor NEWHow I use the homebridge-mqtt api and arduinoJson with my esp8266 accessories.
How I use the homebridge-mqtt api and arduinoJson with my esp8266 accessories.
Hello, itβs a great project, how is it going now? Has the problem been solved? Whether it is open source.
I coped the code for the fan accessory and it gave me this error. Anybody have any ideas on how to fix it?
Arduino: 1.6.13 (Mac OS X), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, 921600, 4M (3M SPIFFS)"
TestFanWithOTA:42: error: no matching function for call to 'PubSubClient::PubSubClient(IPAddress&, WiFiClient&)'
PubSubClient client( server,wclient);
^
PubSubClient::PubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)
PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);
^
PubSubClient.h:116:4: note: candidate expects 5 arguments, 2 provided
PubSubClient.h:115:4: note: PubSubClient::PubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)
PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);
^
PubSubClient.h:115:4: note: candidate expects 4 arguments, 2 provided
PubSubClient.h:114:4: note: PubSubClient::PubSubClient(const char*, uint16_t, Client&, Stream&)
PubSubClient(const char*, uint16_t, Client& client, Stream&);
^
PubSubClient.h:114:4: note: candidate expects 4 arguments, 2 provided
PubSubClient.h:113:4: note: PubSubClient::PubSubClient(const char*, uint16_t, Client&)
PubSubClient(const char*, uint16_t, Client& client);
^
PubSubClient.h:113:4: note: candidate expects 3 arguments, 2 provided
PubSubClient.h:112:4: note: PubSubClient::PubSubClient(uint8_t*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)
PubSubClient(uint8_t , uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);
^
PubSubClient.h:112:4: note: candidate expects 5 arguments, 2 provided
PubSubClient.h:111:4: note: PubSubClient::PubSubClient(uint8_t, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)
PubSubClient(uint8_t , uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);
^
PubSubClient.h:111:4: note: candidate expects 4 arguments, 2 provided
PubSubClient.h:110:4: note: PubSubClient::PubSubClient(uint8_t, uint16_t, Client&, Stream&)
PubSubClient(uint8_t , uint16_t, Client& client, Stream&);
^
PubSubClient.h:110:4: note: candidate expects 4 arguments, 2 provided
PubSubClient.h:109:4: note: PubSubClient::PubSubClient(uint8_t, uint16_t, Client&)
PubSubClient(uint8_t , uint16_t, Client& client);
^
PubSubClient.h:109:4: note: candidate expects 3 arguments, 2 provided
PubSubClient.h:108:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, std::function<void(char, unsigned char*, unsigned int)>, Client&, Stream&)
PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);
^
PubSubClient.h:108:4: note: candidate expects 5 arguments, 2 provided
PubSubClient.h:107:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)
PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);
^
PubSubClient.h:107:4: note: candidate expects 4 arguments, 2 provided
PubSubClient.h:106:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&, Stream&)
PubSubClient(IPAddress, uint16_t, Client& client, Stream&);
^
--------------------------Cut out a whole bunch of other errors to shorten it-------------------------
TestFanWithOTA:163: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub){
^
TestFanWithOTA:163: error: expected ')' before '&' token
TestFanWithOTA:163: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub){
^
exit status 1
no matching function for call to 'PubSubClient::PubSubClient(IPAddress&, WiFiClient&)'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.