Skip to content

Commit

Permalink
iotjs: Fix (re)connected status in callback
Browse files Browse the repository at this point in the history
Note: TizenRT wifi manager "attempt" callback name missleaded me,
maybe it could be renamed.

Change-Id: Ie4a5bcb397fb7959f2c5954d7a7569052ccc39fb
Forwarded: #2319
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Oct 11, 2018
1 parent 57b5ede commit d0d0538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/examples/iotjs_startup/iotjs_startup_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ static void iotjs_startup_wifi_connect(void);
static void iotjs_startup_wifi_sta_connected(wifi_manager_result_e status)
{
printf("log: %s status=0x%x\n", __FUNCTION__, status);
g_is_connected = true;
g_is_connected = ((status == WIFI_MANAGER_SUCCESS) ||
(status == WIFI_MANAGER_ALREADY_CONNECTED));
}

static void iotjs_startup_wifi_sta_disconnected(wifi_manager_disconnect_e status)
Expand Down

0 comments on commit d0d0538

Please sign in to comment.