0 Replies Latest reply on Aug 22, 2016 3:47 AM by oguzkerem

    Gedday Discover Service

    oguzkerem

      Hello,

       

      I want to discover other devices in my local network. So I called gedday_discover_service ( "_http._tcp.local",service_result  );

      But it is not returning anything. After a while, it resets. What I tried is the following:

       

      gedday_service_t* service_result;

       

      wiced_init( );

          wiced_network_up(WICED_STA_INTERFACE, WICED_USE_EXTERNAL_DHCP_SERVER, NULL);

          gedday_init(WICED_STA_INTERFACE, "WICED_Gedday_Example");

          WPRINT_APP_INFO( ( "Service Starts\n" ) );

       

      do{

          result = gedday_discover_service ( "_http._tcp.local",service_result  );

          WPRINT_APP_INFO( ( "Service Discovery res %d\n" , result ) );

          WPRINT_APP_INFO( ( "instance_name res %s\n" , service_result->instance_name ) );

          free(service_result->hostname);

          free(service_result->instance_name);

          }while(result != WICED_SUCCESS);

       

      Is there anyone using that ?

       

      Thanks a lot.