Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Googlesheet_DHT_simple:88: error: conflicting declaration 'HTTPSRedirect* client'
- HTTPSRedirect* client = nullptr;
- ^
- Googlesheet_DHT_simple:13: error: 'client' has a previous declaration as 'WiFiClientSecure client'
- WiFiClientSecure client;
- ^
- C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino: In function 'void loop()':
- Googlesheet_DHT_simple:139: error: no match for 'operator=' (operand types are 'WiFiClientSecure' and 'HTTPSRedirect*')
- client = new HTTPSRedirect(httpsPort);
- ^
- C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:139:12: note: candidate is:
- In file included from C:\Users\hossein\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/ESP8266WiFi.h:41:0,
- from C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:1:
- C:\Users\hossein\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:36:21: note: WiFiClientSecure& WiFiClientSecure::operator=(const WiFiClientSecure&)
- WiFiClientSecure& operator=(const WiFiClientSecure&);
- ^
- C:\Users\hossein\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.3.0\libraries\ESP8266WiFi\src/WiFiClientSecure.h:36:21: note: no known conversion for argument 1 from 'HTTPSRedirect*' to 'const WiFiClientSecure&'
- Googlesheet_DHT_simple:141: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- client->setPrintResponseBody(true); // or false and use String getResponseBody();
- ^
- Googlesheet_DHT_simple:142: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- client->setContentTypeHeader("application/json");
- ^
- Googlesheet_DHT_simple:143: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- if (!client->connected()) client->connect(host, httpsPort);
- ^
- Googlesheet_DHT_simple:143: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- if (!client->connected()) client->connect(host, httpsPort);
- ^
- Googlesheet_DHT_simple:150: error: no match for 'operator!=' (operand types are 'WiFiClientSecure' and 'std::nullptr_t')
- if (client != nullptr){
- ^
- C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:150:16: note: candidates are:
- In file included from C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:13:0,
- from C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:10,
- from C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:2:
- C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonVariantComparisons.hpp:27:13: note: template<class TVariant, class TComparand> bool ArduinoJson::operator!=(const ArduinoJson::JsonVariantBase<T>&, TComparand)
- inline bool operator!=(const JsonVariantBase<TVariant> &variant,
- ^
- C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonVariantComparisons.hpp:27:13: note: template argument deduction/substitution failed:
- C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:150:19: note: 'WiFiClientSecure' is not derived from 'const ArduinoJson::JsonVariantBase<T>'
- if (client != nullptr){
- ^
- In file included from C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:13:0,
- from C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:10,
- from C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:2:
- C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonVariantComparisons.hpp:36:1: note: template<class TVariant, class TComparand> typename ArduinoJson::TypeTraits::EnableIf<(! ArduinoJson::TypeTraits::IsVariant<TComparand>::value), bool>::type ArduinoJson::operator!=(TComparand, const ArduinoJson::JsonVariantBase<T>&)
- operator!=(TComparand comparand, const JsonVariantBase<TVariant> &variant) {
- ^
- C:\Users\hossein\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonVariantComparisons.hpp:36:1: note: template argument deduction/substitution failed:
- C:\Users\hossein\Videos\Googlesheet_DHT_simple-master\Googlesheet_DHT_simple\Googlesheet_DHT_simple.ino:150:19: note: mismatched types 'const ArduinoJson::JsonVariantBase<T>' and 'std::nullptr_t'
- if (client != nullptr){
- ^
- Googlesheet_DHT_simple:151: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- if (!client->connected()){
- ^
- Googlesheet_DHT_simple:152: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- client->connect(host, httpsPort);
- ^
- Googlesheet_DHT_simple:161: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- if (client->GET(url + String("readrow=last"), host)){
- ^
- Googlesheet_DHT_simple:163: error: base operand of '->' has non-pointer type 'WiFiClientSecure'
- JsonObject& json = jsonBuffer.parseObject(client->getResponseBody());
- ^
- Googlesheet_DHT_simple:254: error: type 'class WiFiClientSecure' argument given to 'delete', expected pointer
- delete client;
- ^
- exit status 1
- conflicting declaration 'HTTPSRedirect* client'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement