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

Can I use this as a bridge #133

Closed
thornick opened this issue Apr 21, 2023 · 3 comments
Closed

Can I use this as a bridge #133

thornick opened this issue Apr 21, 2023 · 3 comments

Comments

@thornick
Copy link

First of all great project - wor(x)ks right away!
Not really an issue just a question:
The season started and to my surprise I see that certificates for mqtt don't work anymore with Worx.
You adapted the code to handle the new process. But all my stuff is based on MQTT means somehow I need to bridge or forward the messages to my mqtt server.
Can you give me a hint where in your code I could add this logic or are there any plans in that direction already?
I see self._forward_on_message is triggered and calls on_update, maybe there?
but don't know where to put in the additional connection part.

@MTrab
Copy link
Owner

MTrab commented Apr 21, 2023

Sorry - I cannot. The new way uses tokens and socket connections rather than a normal MQTT connection

@MTrab MTrab closed this as completed Apr 21, 2023
@thornick
Copy link
Author

ok, thanks
can you explain how I can access the payload in the test_async.py example

def receive_data(
name: str, device: DeviceHandler # pylint: disable=unused-argument
) -> None:
"""Callback function when the MQTT broker sends new data."""
print("Got data on MQTT from " + name)

@MTrab
Copy link
Owner

MTrab commented Apr 21, 2023

Haven't had time to update the docs for v3 yet. But take a look in test.py

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

No branches or pull requests

2 participants