Beispiel #1
0
/// Called on idle. Do any checks required for this device
void net_cc3000_idle(JsNetwork *net) {
  cc3000_spi_check();

  if (networkState == NETWORKSTATE_INVOLUNTARY_DISCONNECT) {
    JsVar *wlanObj = jsvObjectGetChild(execInfo.hiddenRoot, CC3000_OBJ_NAME, 0);
    if (wlanObj) {
      jswrap_wlan_reconnect(wlanObj);
      jsvUnLock(wlanObj);
      cc3000_spi_check();
    }
  }
}
Beispiel #2
0
/// Called on idle. Do any checks required for this device
void net_cc3000_idle(JsNetwork *net) {
  cc3000_spi_check();
}