Search found 166 matches

by idahowalker
Sun Jun 14, 2020 2:33 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 14900

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

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

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

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

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

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

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...
by idahowalker
Mon Feb 17, 2020 1:31 pm
Forum: ESP32 Arduino
Topic: Phase matching timer interrupt sequence with LEDC PWM
Replies: 6
Views: 8461

Re: Phase matching timer interrupt sequence with LEDC PWM

Have you considered using freeRTOS and event triggers in your ISR to initiate interrupt code? #include "esp32-hal-psram.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" #in...
by idahowalker
Sun Feb 16, 2020 2:20 pm
Forum: ESP32 Arduino
Topic: Reading databurst by serial2
Replies: 1
Views: 3985

Re: Reading databurst by serial2

Sometimes using the Arduino way to get at the ESP32 functions does not work so well, as in the case of A:D conversions. That's when I turn to the ESP32 API https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/uart.html . I have found that (Serial2.available() > 0) does not...