static void do_awss_reset() { if (linkkit_started) { aos_task_new("reset", awss_report_reset, NULL, 2048); } netmgr_clear_ap_config(); LOG("SSID cleared. Please reboot the system.\n"); aos_post_delayed_action(1000, reboot_system, NULL); }
void alink_key_process(input_event_t *eventinfo, void *priv_data) { if (eventinfo->type != EV_KEY) { return; } if (eventinfo->code == CODE_BOOT) { if (eventinfo->value == VALUE_KEY_CLICK) { if (cloud_is_connected() == false) { netmgr_start(true); } else { alink_activate(NULL); } } else if(eventinfo->value == VALUE_KEY_LTCLICK) { netmgr_clear_ap_config(); aos_reboot(); } else if(eventinfo->value == VALUE_KEY_LLTCLICK) { netmgr_clear_ap_config(); alink_factory_reset(); } } }