Failed to include WidgetRTC

I’ve done everything … clean installation … tested the example myself … nothing worked …
What can it be?

In file included from C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h:18:0,
                 from C:\Users\usuario\AppData\Local\Temp\arduino_modified_sketch_766285\RTC.ino:4:
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In member function 'void BlynkWidgetBase::setLabel(Args ...)':
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:27:9: error: 'Blynk' was not declared in this scope
         Blynk.setProperty(mPin, "label", args...);
         ^
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In member function 'void BlynkWidgetBase::setColor(Args ...)':
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:32:9: error: 'Blynk' was not declared in this scope
         Blynk.setProperty(mPin, "color", args...);
         ^
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In member function 'void BlynkWidgetBase::setMin(Args ...)':
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:37:9: error: 'Blynk' was not declared in this scope
         Blynk.setProperty(mPin, "min", args...);
         ^
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h: In member function 'void BlynkWidgetBase::setMax(Args ...)':
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/Blynk/BlynkWidgetBase.h:42:9: error: 'Blynk' was not declared in this scope
         Blynk.setProperty(mPin, "max", args...);
         ^
In file included from C:\Users\usuario\AppData\Local\Temp\arduino_modified_sketch_766285\RTC.ino:4:0:
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h: In static member function 'static time_t WidgetRTC::requestTimeSync()':
C:\Users\usuario\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h:37:5: error: 'Blynk' was not declared in this scope
     Blynk.sendInternal("rtc", "sync");
     ^
exit status 1
Erro compilando para a placa NodeMCU 1.0 (ESP-12E Module)

This switch from back slashes to forward slashes looks a bit odd…

but I think the first thing is for you to post your code.

How did you install the Blynk library on your PC?

Pete.

1 Like