Ejemplo n.º 1
0
static int restart_nwp() {
  /* We don't need TI's web server. */
  sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);
  sl_Stop(0);
  s_current_role = sl_Start(NULL, NULL, NULL);
  sl_restart_cb(&sj_mgr);
  return (s_current_role >= 0);
}
Ejemplo n.º 2
0
static int restart_nwp(void) {
  /* Properly close FS container if it's open for writing. */
  cc3200_fs_flush();
  /* We don't need TI's web server. */
  sl_NetAppStop(SL_NET_APP_HTTP_SERVER_ID);
  /* Without a delay in sl_Stop subsequent sl_Start gets stuck sometimes. */
  sl_Stop(10);
  s_current_role = sl_Start(NULL, NULL, NULL);
  sl_restart_cb(miot_get_mgr());
  return (s_current_role >= 0);
}