8 Replies Latest reply on Jun 23, 2014 3:13 PM by GregG_16

    when wiced don't join ap,we call wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL ) every 10 second using timer event,the app will di

    chch_2120956

      Hi ,

           when call wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL ) don' t return success

      I want to start a timer period call wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL ) until join ap code

       

      wiced_rtos_register_timed_event( &poll_event, WICED_HARDWARE_IO_WORKER_THREAD, &poll_dameon,10000, 0 );

       

      wiced_result_t poll_dameon (void* arg )

      {

                  if(wiced_network_up( WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL )==WICED_SUCCESS)

                  {

                          wiced_rtos_deregister_timed_event(poll_event);

                  }

      }

      but this code can't work normal.