Skip to content

Commit 5a75d76

Browse files
committed
Update examples
1 parent 5748479 commit 5a75d76

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

libraries/ESP32/examples/AnalogOut/ledcFrequency/ledcFrequency.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
#include "soc/soc_caps.h"
12+
#include <string>
1213

1314
#define PIN 2
1415

libraries/ESP32/examples/Time/SimpleTime/SimpleTime.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <WiFi.h>
22
#include "time.h"
3-
#include "sntp.h"
3+
#include "esp_sntp.h"
44

55
const char* ssid = "YOUR_SSID";
66
const char* password = "YOUR_PASS";
@@ -43,8 +43,8 @@ void setup()
4343
* otherwise SNTP option 42 would be rejected by default.
4444
* NOTE: configTime() function call if made AFTER DHCP-client run
4545
* will OVERRIDE aquired NTP server address
46-
*/
47-
sntp_servermode_dhcp(1); // (optional)
46+
*/
47+
esp_sntp_servermode_dhcp(1);// (optional)
4848

4949
/**
5050
* This will set configured ntp servers and constant TimeZone/daylightOffset

libraries/Insights/examples/DiagnosticsSmokeTest/DiagnosticsSmokeTest.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#include "WiFi.h"
33
#include "inttypes.h"
44
#include "esp_err.h"
5+
#include "esp_random.h"
56

67
const char insights_auth_key[] = "<ENTER YOUR AUTH KEY>";
78

0 commit comments

Comments
 (0)