Search found 13 matches

by danpf1
Wed May 29, 2024 10:56 am
Forum: General Discussion
Topic: ESP32S3: esp-tls couldn't get hostname, getaddrinfo returns 202
Replies: 4
Views: 2933

Re: ESP32S3: esp-tls couldn't get hostname, getaddrinfo returns 202

Yes, I did solve it. The end answer for my board was the power was unstable and that was only seen at the network connection. The other things that helped mitigate it before we fixed the power stability were: Changing TX power (re:https://github.com/espressif/arduino-esp32/issues/6767) Changing to a...
by danpf1
Sat May 11, 2024 6:01 pm
Forum: General Discussion
Topic: ESP32S3: esp-tls couldn't get hostname, getaddrinfo returns 202
Replies: 4
Views: 2933

Re: ESP32S3: esp-tls couldn't get hostname, getaddrinfo returns 202

Thank you, that does make sense. I want to understand why though. It's a Google website so the DNS is fine. Also, it works from my ESP32S3 about half the time. (From the same location, same wifi AP, etc...).

Thanks,
Dan
by danpf1
Fri May 10, 2024 5:45 pm
Forum: General Discussion
Topic: ESP32S3: esp-tls couldn't get hostname, getaddrinfo returns 202
Replies: 4
Views: 2933

ESP32S3: esp-tls couldn't get hostname, getaddrinfo returns 202

Hi, I have a custom board with an ESP32S3 WROOM module on it. Running wifi code I intermittently get this error: esp-tls: couldn't get hostname for :<<website>>: getaddrinfo() returns 202, addrinfo=0x0 esp-tls: Failed to open new connection transport_base: Failed to open a new connection HTTP_CLIENT...
by danpf1
Fri Dec 15, 2023 9:34 pm
Forum: ESP-IDF
Topic: uart_read_bytes hangs after event
Replies: 2
Views: 24106

Re: uart_read_bytes hangs after event

Thanks! I don't see any other code that would be grabbing the bytes. I added code to get the size of the available bytes inside the event before I attempt to uart_read_bytes. uart_get_buffered_data_len(UART_PORT_NUM, &bytesReady); And bytesReady is 1 byte less than the event.size. I'm not sure why t...
by danpf1
Fri Dec 15, 2023 2:10 pm
Forum: ESP-IDF
Topic: uart_read_bytes hangs after event
Replies: 2
Views: 24106

uart_read_bytes hangs after event

I'm using the ESP IDF UART driver. I receive an event with event.size=9 bytes (for example). Then I try to uart_read_bytes for 9 bytes and the code still takes 1000ms sometimes. Is this expected? I would assume that once the event is there and has the number of bytes, those bytes would be ready in t...
by danpf1
Wed Apr 27, 2022 6:19 pm
Forum: ESP-IDF
Topic: xtensa compiler: case label does not reduce to an integer constant
Replies: 2
Views: 2789

Re: xtensa compiler: case label does not reduce to an integer constant

Thanks for the thorough and quick response! I'll look for some workaround for what I'm doing.

- Dan
by danpf1
Wed Apr 27, 2022 2:09 pm
Forum: ESP-IDF
Topic: xtensa compiler: case label does not reduce to an integer constant
Replies: 2
Views: 2789

xtensa compiler: case label does not reduce to an integer constant

Hello, When compiling the simple program below with a macro as a case label, I receive the error: case label does not reduce to an integer constant The error only happens with the xtensa-esp32s3-elf-gcc compiler. This does not happen with plain gcc. #include <stdio.h> // #include <stdlib.h> #include...
by danpf1
Fri Oct 22, 2021 9:15 pm
Forum: ESP-IDF
Topic: SPIFFS VFS writing from multiple tasks
Replies: 0
Views: 1641

SPIFFS VFS writing from multiple tasks

Hello, On an ESP32 I have a SPIFFS mounted as a VFS. I have two FreeRTOS tasks: task A, and task B. Task A is writing to File A (fwrite) Task B is writing to File B (fwrite) If they both are trying to write simultaneously does the SPI or VFS driver handle it or do I need to implement some type of mu...
by danpf1
Tue Jun 08, 2021 2:50 pm
Forum: ESP-IDF
Topic: Pairing mode on ESP32
Replies: 7
Views: 8643

Re: Pairing mode on ESP32

Thanks! I'll check it out.
by danpf1
Wed May 12, 2021 4:37 pm
Forum: ESP-IDF
Topic: Pairing mode on ESP32
Replies: 7
Views: 8643

Re: Pairing mode on ESP32

Thanks. That was the code I started with.

It doesn't do whitelisting. When I use my version of it, the event ESP_GAP_BLE_SEC_REQ_EVT isn't called.

Do you think that event is fired when running the code?

Thanks!