Search found 621 matches

by lbernstone
Tue Mar 19, 2024 4:50 am
Forum: ESP32 Arduino
Topic: Timers with ISR dispatch
Replies: 1
Views: 43

Re: Timers with ISR dispatch

arduino-esp32 uses pre-compiled libraries of the ESP-IDF sdk, so any code dependent on a CONFIG_XX macro will already have those values set. You can see what the sdkconfig settings were for v2.0.14+esp32 at https://github.com/espressif/arduino-es ... /sdkconfig
by lbernstone
Mon Mar 18, 2024 7:39 pm
Forum: ESP32 Arduino
Topic: WebServer.h how do i know if a client disconnects?
Replies: 4
Views: 305

Re: WebServer.h how do i know if a client disconnects?

#include <WebServer.h> WebServer server(80); void handleRoot() { WiFiClient wfc = server.client(); if (wfc.connected()) { Serial.print("Remote IP: "); Serial.println(wfc.remoteIP()); } server.send(200, "text/plain", "Hello!\n"); } void setup() { Serial.begin(115200); WiFi.begin("larryb","clownfish"...
by lbernstone
Mon Mar 18, 2024 7:10 pm
Forum: ESP32 Arduino
Topic: ESP32S3 Unable to set specific GPIO as outputs
Replies: 2
Views: 122

Re: ESP32S3 Unable to set specific GPIO as outputs

If you aren't seeing the pin voltage go to 3v3 with a simple digitalWrite, then you have a hardware issue. Disconnect everything, plug the esp32 directly into a good bench 3v3 source, and verify that it works. These sorts of odd behaviors very often are caused by low current or high voltage power su...
by lbernstone
Sun Mar 17, 2024 7:25 pm
Forum: ESP32 Arduino
Topic: WebServer.h how do i know if a client disconnects?
Replies: 4
Views: 305

Re: WebServer.h how do i know if a client disconnects?

I am not so familiar with the code to have a quick answer for you, but the WiFiClient that WebServer is using is public, so in theory you should be able to look at that object to see if it is connected. As far as an IDF-based wifi manager, esp-wifi-manager can be included in a project as a component.
by lbernstone
Sun Mar 17, 2024 4:40 am
Forum: ESP32 Arduino
Topic: TCP and UDP, How Do I Get Both?
Replies: 2
Views: 198

Re: TCP and UDP, How Do I Get Both?

You can certainly run both a web server and a udp endpoint at the same time on different ports. You will generally only have one protocol listener on any port. HTTP(s) is a stateful connection protocol, so it runs only on TCP. If you want a TCP listener on a random socket, and you are going to write...
by lbernstone
Sat Mar 16, 2024 6:36 pm
Forum: ESP32 Arduino
Topic: ESP32-C6 Low Power hanging device?
Replies: 3
Views: 233

Re: ESP32-C6 Low Power hanging device?

The esp32-c series only has a hardware USB-CDC device. This would need to be reinitialized every time you come out of deep sleep (the host end is likely to decide the device is unresponsive and dead during light sleep). I personally find that the HWCDC is entirely inappropriate for development. You ...
by lbernstone
Sun Mar 10, 2024 5:44 pm
Forum: ESP32 Arduino
Topic: SD.Open() causes crashing with esp32
Replies: 8
Views: 809

Re: SD.Open() causes crashing with esp32

You are welcome to open an issue in the repo. They will want example code and a decoded backtrace from the error.
by lbernstone
Sun Mar 10, 2024 3:50 am
Forum: ESP32 Arduino
Topic: SD.Open() causes crashing with esp32
Replies: 8
Views: 809

Re: SD.Open() causes crashing with esp32

Code: Select all

    hspi = new SPIClass(HSPI);
    hspi->begin(HSPI_SCLK,HSPI_MISO,HSPI_MOSI,HSPI_SS);
    bool SD_OK =  SD.begin(HSPI_SS,*(hspi));
https://wokwi.com/projects/391940646407088129
by lbernstone
Sat Mar 09, 2024 7:51 pm
Forum: ESP32 Arduino
Topic: SD.Open() causes crashing with esp32
Replies: 8
Views: 809

Re: SD.Open() causes crashing with esp32

If you were to post a minimal example, we could help you.