Skip to content

[Bug] mTLS with esp32, arduino framework, and platformIO through VSCode #1086

@vudinhso

Description

@vudinhso

Describe the bug

Dear community,
I am trying to implement mTLS for esp32 and digitalocean (DO) droplet.
Without mTLS, both entities can communicate with the examples pub from esp32 and z_sub from DO.
The problem comes when compiling the esp32 with the certificates from minica.
In the platformio.ini file, setting -DZ_FEATURE_LINK_TLS=1 does not propagate in the config.h of zenoh-pico, making it difficult to start mTLS.

My platformio.ini file:

[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
lib_deps = https://github.com/eclipse-zenoh/zenoh-pico
build_flags =
    -DZENOH_COMPILER_GCC
    -DZENOH_ARDUINO_ESP32
    -DZ_FEATURE_LINK_TLS=1

monitor_speed = 115200

To reproduce

  1. Generate certificate with minica for the server (DigitalOcean or computer) and the client (esp32, base64)
  2. At compile time with PIO, the config file does not set the parameter Z_FEATURE_LINK_TLS to one (it stays at zero)

System info

  • Ubuntu 24.02
  • ESP32 Development Kit
  • PlatformIO on VSCode (6.1.18)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions