Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Micropython ESP32 - DHT22 measure fails when there are too many threads #4037

@omarlopesino

Description

@omarlopesino

Hi. I have a ESP32 devkit v1 board with micropython installed and I have problems with dht measuring when I am doing more than one thread.

The main purpose with DHT22 which I want implement is this:

  • Publish temperature and humidity to MQTT each 30 seconds..
  • Publish temperature and humidity to MQTT when a specific MQTT event is received.

I had this working using a thread for each objective but when I add one thread more DHT measure stop working, it throws ETIMEDOUT exception.

What is the problem and how I can fix it?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions