Search found 4 matches

by Clickau
Mon Oct 19, 2020 2:46 pm
Forum: ESP-IDF
Topic: esp_event_loop_create_default "system event loop not initialized" with wifi
Replies: 0
Views: 3980

esp_event_loop_create_default "system event loop not initialized" with wifi

I am trying to use the IDF functions to connect to wifi in a project that uses Arduino as a component. When using esp_event_loop_create_default after tcpip_adapter_init and before configuring wifi, the following error appears every time my event handler is called: "event: system event loop not initi...
by Clickau
Sun Aug 23, 2020 6:05 pm
Forum: ESP32 Arduino
Topic: Arduino as component PlatformIO, Arduino.h not found
Replies: 1
Views: 3408

Re: Arduino as component PlatformIO, Arduino.h not found

Ok, I solved it by adding platform_packages = ; use a special branch framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v4.0 to platformio.ini along with 'framework = espidf, arduino' and creating a sdkconfig.defaults file in the root of the project containing ...
by Clickau
Tue Aug 18, 2020 9:32 pm
Forum: ESP32 Arduino
Topic: Arduino as component PlatformIO, Arduino.h not found
Replies: 1
Views: 3408

Arduino as component PlatformIO, Arduino.h not found

I have a project built using the Arduino framework and PlatformIO. I want to get rid of setup and loop, so I'm trying to make the project use the esp-idf and Arduino as a component. After adding "framework = espidf, arduino" to platformio.ini, the compiler can't find Arduino.h. I tried adding define...
by Clickau
Thu Jan 02, 2020 10:10 pm
Forum: ESP32 Arduino
Topic: Trigger sntp request manually
Replies: 1
Views: 4316

Trigger sntp request manually

Basically, I want to create a clock that, at startup, tries to get the time over NTP, and if it fails it asks the user for the time. But I want it to periodically retry to get the time over NTP, every 15 minutes or so. In the beginning, I can call getLocalTime to get the time via NTP, but, if that f...