Search found 148 matches

by idahowalker
Tue Jun 23, 2020 6:54 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 386

Re: Reliable WiFi and MQTT connection and reconnection?

I did 2 things, a few days ago, that increased the MQTT connection reliability. void MQTTkeepalive( void *pvParameters ) { MQTTclient.setKeepAlive( 90 ); // setting keep alive to 90 seconds for (;;) { if ( (wifiClient.connected()) && (WiFi.status() == WL_CONNECTED) ) { //log_i( "staying alive " ); x...
by idahowalker
Tue Jun 16, 2020 2:16 pm
Forum: ESP32 Arduino
Topic: The Proper Way to Reconnect to WiFi?
Replies: 5
Views: 9976

Re: The Proper Way to Reconnect to WiFi?

I use the MQTT keep alive to detect a lack of network connection with MQTT. #include <WiFi.h> #include <PubSubClient.h> #include "certs.h" #include "sdkconfig.h" #include "esp_system.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/timers.h" #include "freertos/event_gr...
by idahowalker
Sun Jun 14, 2020 2:33 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 386

Re: Reliable WiFi and MQTT connection and reconnection?

Well cool, that code, posted above, the ESP32 stayed connected for 24 hours. A first. Seems the MQTT callback does not like to run code.
by idahowalker
Sun Jun 14, 2020 9:12 am
Forum: ESP32 Arduino
Topic: 'hw_timer_t' does not name a type error when in an included file
Replies: 2
Views: 152

Re: 'hw_timer_t' does not name a type error when in an included file

In this thread I posted code that uses the hardware timer and other libraries https://esp32.com/viewtopic.php?f=19&t=16109
by idahowalker
Sat Jun 13, 2020 2:10 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 386

Re: Reliable WiFi and MQTT connection and reconnection?

I, also, experience WiFi disconnects. The disconnects happen about 2 to 6 hours. I am still trying to figure out a good reconnect solution. From what I've been reading the WiFi disconnect has been an issue for sometime. To determine if the MQTT connection and path and topics are correct, I ran Node-...
by idahowalker
Fri May 15, 2020 11:04 pm
Forum: ESP IoT Solution
Topic: AWS IoT examples NO Amazon FreeRTOS?
Replies: 8
Views: 3233

Re: AWS IoT examples NO Amazon FreeRTOS?

I had a ESP32 publishing MQTT (IoT) to AWS. In IoT build the device, set its type and security. Save your certificates. In the Arduino IDE, I made a certs.h, I used PubSub to send. Connected well. My issue was in wanting to send data from the AWS IoT to the dB on my web site. I got a RPi, loaded it ...
by idahowalker
Thu May 14, 2020 6:14 pm
Forum: ESP32 Arduino
Topic: I am trying to get my ESP32 to transmit DMX data, but cannot find a library. Does anyone know of any?
Replies: 1
Views: 212

Re: I am trying to get my ESP32 to transmit DMX data, but cannot find a library. Does anyone know of any?

Have you tried using your favorite internet search engine using the words
esp32 dmx library
?
by idahowalker
Tue Apr 07, 2020 6:26 pm
Forum: ESP32 Arduino
Topic: In light sleep servos lose power
Replies: 0
Views: 1581

In light sleep servos lose power

Fist code /* Project, use solar cells to generate power 2/2/2020 */ #include "sdkconfig.h" #include "esp_system.h" //This inclusion configures the peripherals in the ESP system. #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "freertos/timers.h" #include "freertos/event_groups.h" ...
by idahowalker
Wed Feb 19, 2020 1:05 pm
Forum: ESP32 Arduino
Topic: portYIELD_FROM_ISR() is not working
Replies: 4
Views: 964

Re: portYIELD_FROM_ISR() is not working

Under freeRTOS loop() should be empty. /* Project, use solar cells to generate power 2/2/2020 */ // https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/esp_timer.html ///esp_timer_get_time(void) //gets time in uSeconds like Arduino Micros, not tested. see above link //////// h...

Go to advanced search