• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 SNTP function not defined error

Q&A Forum › Category: ESP32 › ESP32 SNTP function not defined error
0 Vote Up Vote Down
Pedro Ribeiro asked 3 years ago

Hello,
I’m using Platformio compile/build ESP32 code. When I use the function “sntp_get_sync_interval” I get an error stating that the function is not defined. I do have the “esp_sntp.h” file included but that function is not defined in it. However, when I search online, I can find an “esp_sntp.h” file that does define that function. How can I tell whether Platformio is using the latest libraries? How do I get them updated?
Below are the contents of my platformio.ini file:
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
monitor_speed = 115200
Thank you very much for any assistance.

Question Tags: platformio; esp32; vscode
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 3 years ago

Hi.
Update your ESP32 boards installation.
Go to PlatformIO home > Platforms > Updates and update the Espressif32 to the latest version.
Regards,
Sara
 

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.