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

Add possibility to connect via ssl to broker #245

Merged
merged 1 commit into from
Jul 6, 2023

Conversation

oscgonfer
Copy link
Contributor

This PR adds the possibility to connect via 1883 default port to mqtt broker in lib/task/mqtt-subscriber.rake, or to add an extra env variable in .env that would allow for a ssl connection through another port.

@oscgonfer
Copy link
Contributor Author

tested with staging api and working OK!

I, [2023-07-06T13:40:22.641275 #1] INFO -- : MQTT TASK STARTING
I, [2023-07-06T13:40:22.641657 #1] INFO -- : clean_session: false
I, [2023-07-06T13:40:22.641688 #1] INFO -- : client_id: ******
I, [2023-07-06T13:40:22.641704 #1] INFO -- : host: ****.smartcitizen.me
I, [2023-07-06T13:40:22.641718 #1] INFO -- : port: ****
I, [2023-07-06T13:40:22.641732 #1] INFO -- : ssl: true
I, [2023-07-06T13:40:22.848133 #1] INFO -- : Connected to ****.smartcitizen.me
I, [2023-07-06T13:40:22.848725 #1] INFO -- : Using clean_session setting: false

@oscgonfer oscgonfer merged commit 94e3688 into master Jul 6, 2023
@timcowlishaw timcowlishaw deleted the enhancement/mqtt_ssl_support branch July 4, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant