- 积分
- 157
- 金钱
- 130
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
注册会员
- 积分
- 157
- 金钱
- 130
- HASS币
- 0
|
发表于 2017-7-16 14:45:07
|
显示全部楼层
Arduino:1.6.12 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 1M (64K SPIFFS), ck, Disabled, None"
ESPsonoff_POW-v1.01:76: error: no matching function for call to 'PubSubClient:ubSubClient(WiFiClient&, const char [14], int)'
PubSubClient mqttClient(wifiClient, MQTT_SERVER, MQTT_PORT);
^
C:\Users\Smile\Desktop\ESPsonoff_POW-v1.01\ESPsonoff_POW-v1.01.ino:76:59: note: candidates are:
In file included from C:\Users\Smile\Desktop\ESPsonoff_POW-v1.01\ESPsonoff_POW-v1.01.ino:35:0:
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4: note: PubSubClient:ubSubClient(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&);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:116:4: note: candidate expects 5 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4: note: PubSubClient:ubSubClient(const char*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)
PubSubClient(const char*, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:115:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4: note: PubSubClient:ubSubClient(const char*, uint16_t, Client&, Stream&)
PubSubClient(const char*, uint16_t, Client& client, Stream&);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:114:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4: note: PubSubClient:ubSubClient(const char*, uint16_t, Client&)
PubSubClient(const char*, uint16_t, Client& client);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:113:4: note: no known conversion for argument 1 from 'WiFiClient' to 'const char*'
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:112:4: note: PubSubClient:ubSubClient(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&);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:112:4: note: candidate expects 5 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:111:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&)
PubSubClient(uint8_t *, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:111:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:110:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, Client&, Stream&)
PubSubClient(uint8_t *, uint16_t, Client& client, Stream&);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:110:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:109:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, Client&)
PubSubClient(uint8_t *, uint16_t, Client& client);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:109:4: note: no known conversion for argument 1 from 'WiFiClient' to 'uint8_t* {aka unsigned char*}'
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:108:4: note: PubSubClient:ubSubClient(IPAddress, uint16_t, std::function<void(char*, unsigned char*, unsigned int)>, Client&, Stream&)
PubSubClient(IPAddress, uint16_t, MQTT_CALLBACK_SIGNATURE,Client& client, Stream&);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:108:4: note: candidate expects 5 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/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);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:107:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:106:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&, Stream&)
PubSubClient(IPAddress, uint16_t, Client& client, Stream&);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:106:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:105:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&)
PubSubClient(IPAddress, uint16_t, Client& client);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:105:4: note: no known conversion for argument 1 from 'WiFiClient' to 'IPAddress'
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:104:4: note: PubSubClient::PubSubClient(Client&)
PubSubClient(Client& client);
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:104:4: note: candidate expects 1 argument, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:103:4: note: PubSubClient::PubSubClient()
PubSubClient();
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:103:4: note: candidate expects 0 arguments, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: PubSubClient::PubSubClient(const PubSubClient&)
class PubSubClient {
^
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: candidate expects 1 argument, 3 provided
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: PubSubClient::PubSubClient(PubSubClient&&)
C:\Users\Smile\Documents\Arduino\libraries\PubSubClient\src/PubSubClient.h:83:7: note: candidate expects 1 argument, 3 provided
ESPsonoff_POW-v1.01:80: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub) {
^
ESPsonoff_POW-v1.01:80: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub) {
^
ESPsonoff_POW-v1.01:80: error: expected ')' before '&' token
ESPsonoff_POW-v1.01:80: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub) {
^
ESPsonoff_POW-v1.01:80: error: 'MQTT' does not name a type
void callback(const MQTT::Publish& pub) {
^
ESPsonoff_POW-v1.01:80: error: expected unqualified-id before '&' token
void callback(const MQTT::Publish& pub) {
^
ESPsonoff_POW-v1.01:80: error: expected ')' before '&' token
ESPsonoff_POW-v1.01:80: error: expected initializer before 'pub'
void callback(const MQTT::Publish& pub) {
^
exit status 1
no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&, const char [14], int)'
在文件 -> 首选项开启
“编译过程中显示详细输出”选项
这份报告会包含更多信息。
|
|