Skip to content

ble_mesh_sensor_model sensor_client wrong pinout for ESP32C3 (IDFGH-10242) #11505

Open
@ShahinHaque97-CT

Description

@ShahinHaque97-CT

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

https://github.com/espressif/esp-idf/blob/master/examples/bluetooth/esp_ble_mesh/ble_mesh_sensor_model/sensor_client/main/board.c

Now that ESP32C3 is supported for this example, example will need to be changed for the button to accommodate for the different boards.

For ESP32C3, I have added this to allow the boards to work:

#if(CONFIG_IDF_TARGET_ESP32C3)

#define BUTTON_IO_NUM           9
#define BUTTON_ACTIVE_LEVEL     1

#elif (CONFIG_IDF_TARGET_ESP32)

#define BUTTON_IO_NUM           0
#define BUTTON_ACTIVE_LEVEL     0

#endif

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions