Search found 149 matches

by idahowalker
Tue Jul 07, 2020 6:41 pm
Forum: ESP32 Arduino
Topic: How does ESP32 drives OLED 1106
Replies: 5
Views: 149

Re: How does ESP32 drives OLED 1106

The u8g2 library works on the SH1106 OLED, https://github.com/olikraus/u8g2/wiki Example of a sh1106 instantiation, U8G2_SH1106_72X40_WISE_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=*/ 10, /* dc=*/ 9, /* reset=*/ 8); Select an instantiation that matches your OLED. You can see the default pin numbers/connection...
by idahowalker
Tue Jun 23, 2020 6:54 pm
Forum: ESP32 Arduino
Topic: Reliable WiFi and MQTT connection and reconnection?
Replies: 5
Views: 424

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

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

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

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

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

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

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

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

Go to advanced search