Search found 347 matches

by nopnop2002
Sat May 30, 2026 5:32 am
Forum: ESP-IDF
Topic: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.
Replies: 8
Views: 202

Re: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.

May I ask where should I apply this fix?

Code: Select all

cd your_project
mv managed_components components
rm main/idf_component.yml
cd components/
cd esp-idf-lib__dht
edit dht.c
idf.py build
by nopnop2002
Wed May 27, 2026 8:32 am
Forum: ESP-IDF
Topic: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.
Replies: 8
Views: 202

Re: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.


static portMUX_TYPE mux = portMUX_INITIALIZER_UNLOCKED;
#define PORT_ENTER_CRITICAL() portENTER_CRITICAL(&mux)
#define PORT_EXIT_CRITICAL() portEXIT_CRITICAL(&mux)


It's possible that the ESP32C3's portEXIT_CRITICAL function isn't working correctly.

Calling portEXIT_CRITICAL may not have ...
by nopnop2002
Wed May 27, 2026 12:35 am
Forum: ESP-IDF
Topic: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.
Replies: 8
Views: 202

Re: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.

The critical section is having some kind of impact.

However, I don't know what caused it.

https://github.com/esp-idf-lib/dht/blob/main/dht.c#L213-L216

Temporary solution:


#if 0
PORT_ENTER_CRITICAL();
#endif
esp_err_t result = dht_fetch_data(sensor_type, pin, data);
#if 0
if (result == ESP ...
by nopnop2002
Mon May 25, 2026 12:27 am
Forum: ESP-IDF
Topic: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.
Replies: 8
Views: 202

Re: Reading DHT11 sensor in the loop with vTaskDelay behaves unexpectedly.

The ESP32 works.

The ESP32C3 does not work.

Some SoCs are not supported.
by nopnop2002
Fri May 22, 2026 1:33 am
Forum: General Discussion
Topic: Esp32-p4 module?
Replies: 4
Views: 186

Re: Esp32-p4 module?

Code: Select all

https://products.espressif.com/#/product-selector?names=&filter={%22Series%22:[%22ESP32-P4%22]}
by nopnop2002
Wed May 13, 2026 12:17 am
Forum: General Discussion
Topic: ESP32-C6 TWAI 0 and TWAI 1
Replies: 1
Views: 50

Re: ESP32-C6 TWAI 0 and TWAI 1


1. Can TWAI0 and TWAI1 be used simultaneously on ESP32-C6?


Yes.


2. Can TWAI0_TX / TWAI0_RX and TWAI1_TX / TWAI1_RX be routed to arbitrary exposed GPIOs through the GPIO Matrix?


Yes.


3. Is the TWAI v2 API with "twai_new_node_onchip()" the correct API to use for two simultaneous TWAI ...
by nopnop2002
Thu Apr 30, 2026 5:30 am
Forum: ESP-IDF
Topic: How to remove a component from project
Replies: 2
Views: 71

Re: How to remove a component from project

I'm not using Eclipse CDT, so this might not be correct, but if your project have an idf_component.yml file, Try deleting it.
by nopnop2002
Tue Apr 28, 2026 11:59 am
Forum: General Discussion
Topic: deprecated function how to solve it
Replies: 3
Views: 106

Re: deprecated function how to solve it

In ESP-IDF V6, the following options may help avoid deprecation-related errors.
This allowed us to temporarily circumvent the deprecation error related to the legacy TWAI driver.
However, it is not guaranteed that all errors can be avoided.
583825747-fd46966b-6a9f-4034-a9e3-b13a75c02bc8.jpg
583825747-fd46966b-6a9f-4034-a9e3-b13a75c02bc8.jpg (159.88 KiB) Viewed 43 times
by nopnop2002
Tue Apr 28, 2026 11:24 am
Forum: General Discussion
Topic: Scketchs com QoS MQTT.
Replies: 2
Views: 59

Re: Scketchs com QoS MQTT.

ESP-MQTT supports three QoS levels.

https://docs.espressif.com/projects/esp ... /mqtt.html#

You can use esp_mqtt_client_publish() or esp_mqtt_client_enqueue().

Example code is here.
https://github.com/espressif/esp-mqtt/t ... r/examples
by nopnop2002
Thu Apr 23, 2026 11:36 pm
Forum: General Discussion
Topic: Add DNS entry for ESP32C5 when in AP mode
Replies: 2
Views: 43

Re: Add DNS entry for ESP32C5 when in AP mode

AP mode cannot connect to the internet.

Go to advanced search