You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// the following methods allow the sketch to be notified when connected or
41
+
// disconnected to the network
42
+
43
+
conMan.addConnectCallback(onNetworkConnect); // look at function onNetworkConnect towards the end of this sketch
44
+
conMan.addDisconnectCallback(onNetworkDisconnect); // look at function onNetworkDisconnect towards the end of this sketch
27
45
}
28
46
29
47
voidloop() {
30
-
deb.update();
48
+
// the following code keeps on running connection workflows on our ConnectionHandler object,
49
+
// hence allowing reconnection in case of failure and notification of connect/disconnect event if enabled (see addConnectCallback/addDisconnectCallback)
50
+
// NOTE: any use of delay() within the loop or methods called from it will delay the execution of .update(),
51
+
// which might not guarantee the correct functioning of the ConnectionHandler object.
0 commit comments