|
发表于 2018-8-5 00:13:35
|
显示全部楼层
Arduino:1.6.8 (Windows 7), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, ck, 26 MHz, 40MHz, DOUT, 1M (no SPIFFS), 2, v2 Lower Memory, Disabled, None, Only Sketch, 115200"
WARNING: Spurious .github folder in 'Adafruit SGP30 Sensor' library
WARNING: Spurious .github folder in 'IRremoteESP8266' library
sonoff:35: error: no matching function for call to 'PubSubClient:ubSubClient(WiFiClient&, const char [14], int)'
C:\Users\Administrator\Desktop\鏅鸿兘瀹跺眳(1)\sonoff\sonoff.ino:35:59: note: candidates are:
In file included from C:\Users\Administrator\Desktop\鏅鸿兘瀹跺眳(1)\sonoff\sonoff.ino:2:0:
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:118: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\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:118:4: note: candidate expects 5 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:117: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\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:117:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:116:4: note: PubSubClient:ubSubClient(const char*, uint16_t, Client&, Stream&)
PubSubClient(const char*, uint16_t, Client& client, Stream&);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:116:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:115:4: note: PubSubClient:ubSubClient(const char*, uint16_t, Client&)
PubSubClient(const char*, uint16_t, Client& client);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:115:4: note: no known conversion for argument 1 from 'WiFiClient' to 'const char*'
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:114: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\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:114:4: note: candidate expects 5 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:113: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\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:113:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:112:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, Client&, Stream&)
PubSubClient(uint8_t *, uint16_t, Client& client, Stream&);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:112:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:111:4: note: PubSubClient:ubSubClient(uint8_t*, uint16_t, Client&)
PubSubClient(uint8_t *, uint16_t, Client& client);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:111:4: note: no known conversion for argument 1 from 'WiFiClient' to 'uint8_t* {aka unsigned char*}'
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:110: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\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:110:4: note: candidate expects 5 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:109: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\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:109:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:108:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&, Stream&)
PubSubClient(IPAddress, uint16_t, Client& client, Stream&);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:108:4: note: candidate expects 4 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:107:4: note: PubSubClient::PubSubClient(IPAddress, uint16_t, Client&)
PubSubClient(IPAddress, uint16_t, Client& client);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:107:4: note: no known conversion for argument 1 from 'WiFiClient' to 'IPAddress'
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:106:4: note: PubSubClient::PubSubClient(Client&)
PubSubClient(Client& client);
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:106:4: note: candidate expects 1 argument, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:105:4: note: PubSubClient::PubSubClient()
PubSubClient();
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:105:4: note: candidate expects 0 arguments, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:85:7: note: PubSubClient::PubSubClient(const PubSubClient&)
class PubSubClient {
^
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:85:7: note: candidate expects 1 argument, 3 provided
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:85:7: note: PubSubClient::PubSubClient(PubSubClient&&)
C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09\src/PubSubClient.h:85:7: note: candidate expects 1 argument, 3 provided
sonoff:38: error: 'MQTT' does not name a type
sonoff:38: error: expected unqualified-id before '&' token
sonoff:38: error: expected ')' before '&' token
sonoff:38: error: expected initializer before 'pub'
"ubSubClient.h" 对应多个库
已使用: C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\PubSubClient-2.6.09
未使用:C:\Users\Administrator\Desktop\arduino-PR-4376-BUILD-479\portable\sketchbook\libraries\pubsubclient-master
exit status 1
no matching function for call to 'PubSubClient::PubSubClient(WiFiClient&, const char [14], int)'
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
|
|