Ok… thanks for the optimization advices, the most important thing, now for me, is that using Blynk.config and Blynk.connect my sketch continue to the next line even isn’t connected to the server (non blocking).
The first time I must specify all data (user, pass, and so on) to be used the next times or also I can store parameters in the ESP using AT command in a seperate way.
You can’t use wifi in Blynk.confg() as the function is defined as:
void config(const char* auth,
IPAddress ip,
uint16_t port = BLYNK_DEFAULT_PORT)
So just Blynk token, IP address and port number. For your variable names, and before I upgrade to the v0.4.1, the following compiles and the ESP connects.
after upgrading to new app, how can i pair/connect bluetooth modules in the app?
the bluetooth widget is greyed out, it says already installed, but it is not
hm, that’s strange. for me, if i use bluetooth in one project, and create a new one, the bluetooth widget is greyed out in the second project. i will clear the cache and reinstall the app.
but what if i have several bluetooth modules, and i pair / unpair them before using the respective project???
for example, i have a diy fruit dehydrator, with blynk + bluetooth, and now i’m building an electronic/ automatic bike hub shifter, also with bluetooth interface?
I just updated to 0.4.1 and the exact same code that compiled nicely on 0.4.0 now does not compile. I get the following error, any help would be appreciated (I am running 1.6.13):
Build options changed, rebuilding all
In file included from E:\OneDrive\OneDrive\My Arduino Code Library 22Oct2016\Arduino\Home.ino:208:0:
C:\Users\mda\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h:28:12: error: 'time_t' does not name a type
static time_t requestTimeSync();
^
In file included from E:\OneDrive\OneDrive\My Arduino Code Library 22Oct2016\Arduino\Home.ino:208:0:
C:\Users\mda\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h:34:35: error: no 'time_t WidgetRTC::requestTimeSync()' member function declared in class 'WidgetRTC'
time_t WidgetRTC::requestTimeSync()
^
C:\Users\mda\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h: In member function 'void WidgetRTC::begin()':
C:\Users\mda\Documents\Arduino\libraries\Blynk\src/WidgetRTC.h:45:21: error: 'requestTimeSync' was not declared in this scope
setSyncProvider(requestTimeSync);
^
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.