tuya / tuya-wifi-mcu-sdk-arduino-library

Tuya MCU SDK Arduino Library is developed based on the Tuya Wi-Fi general integration solution.
112 stars 24 forks source link

error: extra qualification 'TuyaWifi::'[-fpermissive] #10

Open hugo8873 opened 1 year ago

hugo8873 commented 1 year ago

IDE: Arduino IDE 1.8 Hardware: ESP32-S3-Lilygo-T-Display-S3

When compiling the example sketch "start.ino", getting error message, " In file included from /Users/~/Documents/Arduino/Tuya_Test_ESP32S3_T_Display/Tuya_Test_ESP32S3_T_Display/Tuya_Test_ESP32S3_T_Display.ino:15: /Users/~/Documents/Arduino/libraries/Tuya_WiFi_MCU_SDK/src/TuyaWifi.h:81:10: error: extra qualification 'TuyaWifi::' on member 'get_green_time' [-fpermissive] char TuyaWifi::get_green_time(TUYA_WIFI_TIME time, const unsigned int timeout); ^~~~ /Users/~/Documents/Arduino/libraries/Tuya_WiFi_MCU_SDK/src/TuyaWifi.h:85:10: error: extra qualification 'TuyaWifi::' on member 'get_rtc_time' [-fpermissive] char TuyaWifi::get_rtc_time(TUYA_WIFI_TIME time, const unsigned int timeout); ^~~~ exit status 1 Error compiling for board ESP32S3 Dev Module. "

Any clue? Thanks. Is this just a syntax error in the *.cpp?

shiliu-yang commented 1 year ago

I apologize for just seeing this issue. You can update this Arduino library to the latest version should solve your problem.