Search found 162 matches

by idahowalker
Wed Mar 03, 2021 1:40 pm
Forum: ESP32 Arduino
Topic: esp_netif_init();
Replies: 1
Views: 114

esp_netif_init();

How does the esp_netif.h library get included in the Arduino IDE?

This

Code: Select all

extern "C"
{
#include "esp_netif.h"
}
or this

Code: Select all

#include "esp_netif.h"
produces this error:

Code: Select all

esp_netif.h: No such file or directory
by idahowalker
Tue Mar 02, 2021 7:24 pm
Forum: ESP32 Arduino
Topic: #include "esp_netif.h"
Replies: 0
Views: 81

#include "esp_netif.h"

#include "esp_netif.h" Just trying to run this //// void wifi_init() { esp_netif_init(); } for now. Which needs esp_netif.h. Trying to include the fil gives this error: ESP32_MQTT_API:11:23: fatal error: esp_netif.h: No such file or directory compilation terminated. exit status 1 esp_netif.h: No suc...
by idahowalker
Tue Mar 02, 2021 2:44 pm
Forum: ESP32 Arduino
Topic: #include "mqtt_client.h"
Replies: 4
Views: 175

Re: #include "mqtt_client.h"

So you write this thingy but it does not work and you don't know why it does not work. That's what your saying.
by idahowalker
Mon Mar 01, 2021 7:37 pm
Forum: ESP32 Arduino
Topic: #include "mqtt_client.h"
Replies: 4
Views: 175

Re: #include "mqtt_client.h"

But wait, there is more! This function: static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event) is called by this function: static void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data) { log_i( "Event dispatched from event loop base=%s, ...
by idahowalker
Mon Mar 01, 2021 5:06 pm
Forum: ESP32 Arduino
Topic: #include "mqtt_client.h"
Replies: 4
Views: 175

#include "mqtt_client.h"

upgraded to 1.05 this AM, right after the Arduino IDE let me know the upgrade is available. Now that issue has went away.
by idahowalker
Mon Mar 01, 2021 3:52 pm
Forum: ESP32 Arduino
Topic: #include "mqtt_client.h"
Replies: 4
Views: 175

Re: #include "mqtt_client.h"

Here is the mqtt_client.h file contents. /* * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. * Tuan PM <tuanpm at live dot com> */ #ifndef _MQTT_CLIENT_H_ #define _MQTT_CLIENT_H_ #include <stdint.h> #include <stdbool.h> #inclu...
by idahowalker
Mon Mar 01, 2021 12:44 pm
Forum: ESP32 Arduino
Topic: #include "mqtt_client.h"
Replies: 4
Views: 175

#include "mqtt_client.h"

#include <WiFi.h> #include "certs.h" // include the connection infor for WiFi and MQTT #include "sdkconfig.h" // used for log printing #include "esp_system.h" #include "freertos/FreeRTOS.h" //freeRTOS items to be used #include "freertos/task.h" #include "mqtt_client.h" #include "esp_event.h" //// s...
by idahowalker
Fri Dec 18, 2020 12:43 pm
Forum: ESP32 Arduino
Topic: repetitive timerAlarmWrite problem?
Replies: 4
Views: 504

Re: repetitive timerAlarmWrite problem?

take the code out of the isr volatile bool ItrippedOut=false; isr my thing() { ItrippedOut= true; better yet use a freeRTOS event trigger to trigger the task to be ran.} loop() { If Itrippedout then run the code that was in the isr and set iTrippedOut = false; ready for the next isr} So now loop run...
by idahowalker
Sun Sep 06, 2020 7:44 pm
Forum: ESP32 Arduino
Topic: What runs on each core? And can you force ethernet callback routines onto core 0?
Replies: 3
Views: 1040

Re: What runs on each core? And can you force ethernet callback routines onto core 0?

Use xTaskCreatePinnedToCore(), internet search time. BTW xTaskCreatePinnedToCore works just like xTaskCreate().

Go to advanced search