File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
#include "esp_log.h"
2
2
#include "media_lib_adapter.h"
3
3
#include "media_lib_os.h"
4
+ #include "esp_netif_sntp.h"
4
5
#include "livekit.h"
5
6
#include "network.h"
6
7
#include "media.h"
@@ -27,5 +28,8 @@ void app_main(void)
27
28
livekit_system_init ();
28
29
board_init ();
29
30
media_init ();
31
+ esp_sntp_config_t sntp_config = ESP_NETIF_SNTP_DEFAULT_CONFIG_MULTIPLE (2 ,
32
+ ESP_SNTP_SERVER_LIST ("time.google.com" , "pool.ntp.org" ));
33
+ esp_netif_sntp_init (& sntp_config );
30
34
network_init (CONFIG_WIFI_SSID , CONFIG_WIFI_PASSWORD , network_event_handler );
31
35
}
Original file line number Diff line number Diff line change 1
1
#include "esp_log.h"
2
2
#include "media_lib_adapter.h"
3
3
#include "media_lib_os.h"
4
+ #include "esp_netif_sntp.h"
4
5
#include "livekit.h"
5
6
#include "network.h"
6
7
#include "media.h"
@@ -27,5 +28,8 @@ void app_main(void)
27
28
livekit_system_init ();
28
29
board_init ();
29
30
media_init ();
31
+ esp_sntp_config_t sntp_config = ESP_NETIF_SNTP_DEFAULT_CONFIG_MULTIPLE (2 ,
32
+ ESP_SNTP_SERVER_LIST ("time.google.com" , "pool.ntp.org" ));
33
+ esp_netif_sntp_init (& sntp_config );
30
34
network_init (CONFIG_WIFI_SSID , CONFIG_WIFI_PASSWORD , network_event_handler );
31
35
}
You can’t perform that action at this time.
0 commit comments