/******************************************************************************
 * FunctionName : user_init
 * Description  : entry of user application, init user function here
 * Parameters   : none
 * Returns      : none
*******************************************************************************/
void ICACHE_FLASH_ATTR
    light_switch_action()
{
	os_printf("ESPNOW ENABLE 6M TX RATE\r\n");
	wifi_enable_6m_rate(true);
    user_SwitchReact();
}
Esempio n. 2
0
/******************************************************************************
 * FunctionName : user_init
 * Description  : entry of user application, init user function here
 * Parameters   : none
 * Returns      : none
*******************************************************************************/
void ICACHE_FLASH_ATTR
    light_switch_action()
{
	extern void ieee80211_mesh_quick_init();
	ieee80211_mesh_quick_init();

	os_printf("ESPNOW ENABLE 6M TX RATE\r\n");
	wifi_enable_6m_rate(true);
    user_SwitchReact();
}