Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: meshtasticd - Implement TLS MQTT support #6105

Open
habr05 opened this issue Feb 20, 2025 · 1 comment
Open

[Feature Request]: meshtasticd - Implement TLS MQTT support #6105

habr05 opened this issue Feb 20, 2025 · 1 comment
Labels
bug Something isn't working enhancement New feature or request linux-native related to running meshtastic as daemon on native linux

Comments

@habr05
Copy link

habr05 commented Feb 20, 2025

Category

Other

Hardware

Linux Native

Firmware Version

2.5.21

Description

I'm unable to establish a connection from portduino to MQTT broker via TLS. A non-TLS connection works.
Tested T-beams on the same MQTT broker and they do connect to both, TLS and non-TLS ports on a broker. Portduino is the only one that has an issue with TLS.

Relevant log output

@habr05 habr05 added the bug Something isn't working label Feb 20, 2025
@vidplace7 vidplace7 added the linux-native related to running meshtastic as daemon on native linux label Feb 21, 2025
@vidplace7
Copy link
Member

vidplace7 commented Feb 21, 2025

firmware/src/mqtt/MQTT.h

Lines 82 to 85 in 3787cf7

#if __has_include(<WiFiClientSecure.h>)
using MQTTClientTLS = WiFiClientSecure;
#define MQTT_SUPPORTS_TLS 1
#endif

meshtastic/framework-portduino#46

WiFiClientSecure needs to be implemented in framework-portduino before this can work 🙏 as that's what PubSub uses to create TLS MQTT connections.

@vidplace7 vidplace7 added the enhancement New feature or request label Feb 21, 2025
@vidplace7 vidplace7 changed the title [Bug]: Unable to connect via TLS to MQTT broker [Feature Request]: meshtasticd - Implement TLS MQTT support Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request linux-native related to running meshtastic as daemon on native linux
Projects
None yet
Development

No branches or pull requests

2 participants