Search found 166 matches

by idahowalker
Thu Jan 06, 2022 10:15 pm
Forum: ESP32 Arduino
Topic: restarting one-shot timer
Replies: 1
Views: 5687

Re: restarting one-shot timer

Here is some code where I use the oneshot timer under the Arduino IDE. #include <WiFi.h> #include <PubSubClient.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 it...
by idahowalker
Mon Jan 03, 2022 4:47 pm
Forum: ESP32 Arduino
Topic: light sleep, PCNT
Replies: 0
Views: 3458

light sleep, PCNT

Is the PCNT operational during light sleep?
by idahowalker
Thu Sep 23, 2021 2:55 pm
Forum: ESP32 Arduino
Topic: ESP32 MQTT API issue
Replies: 3
Views: 3630

Re: ESP32 MQTT API issue

The ESPRESSIF example code ``` https://github.com/espressif/esp-idf/blob/220590d599e134d7a5e7f1e683cc4550349ffbf8/examples/protocols/mqtt/tcp/main/app_main.c ``` Does the thing ``` static void mqtt_event_handler(void *handler_args, esp_event_base_t base, int32_t event_id, void *event_data) { ESP_LOG...
by idahowalker
Wed Sep 22, 2021 9:10 pm
Forum: ESP32 Arduino
Topic: ESP32 MQTT API issue
Replies: 3
Views: 3630

ESP32 MQTT API issue

Well the recent upgrades to the core have allowed me to get further along with using the MQTT API in the Arduino IDE but... Here is the code ``` //#include <string.h> #include <WiFi.h> #include "certs.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/event_groups.h" #in...
by idahowalker
Wed Mar 03, 2021 1:40 pm
Forum: ESP32 Arduino
Topic: esp_netif_init();
Replies: 1
Views: 3222

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: 2401

#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: 6555

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: 6555

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: 6555

#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: 6555

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...