9 Replies Latest reply on Jul 9, 2019 4:55 AM by ChMa_3922746

    sntp time sync fails while using static IP

    userc_10213

      I was using sntp_get_time app in Wiced IDE 3.1.0 , I was able to sync time to a time server while using WICED_USE_EXTERNAL_DHCP_SERVER in  wiced_network_up() function..

       

      But On changing to use Static IP ie;

       

      const wiced_ip_setting_t board_static_ip_setting =

      {

              INITIALISER_IPV4_ADDRESS( .ip_address, MAKE_IPV4_ADDRESS(192,168,  1,  110) ),

              INITIALISER_IPV4_ADDRESS( .netmask,    MAKE_IPV4_ADDRESS(255,255,255,  0) ),

              INITIALISER_IPV4_ADDRESS( .gateway,    MAKE_IPV4_ADDRESS(192,168,  1,  0) ),

      };

      void application_start( )

      {

      wiced_init( );

      wiced_network_up( WICED_STA_INTERFACE, WICED_USE_STATIC_IP, &board_static_ip_setting );

      sntp_start_auto_time_sync( TIME_SYNC_PERIOD );

      }

       

      It is consistently failing to sync the time with time server....

       

      Why is this difference while using External DHCP and Static IP ?

       

      Any thoughts?