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

Transcode TXT field to dbus.Bytes for Python3 Avahi service #325

Merged
merged 1 commit into from
Oct 19, 2020

Conversation

cerna
Copy link
Contributor

@cerna cerna commented Oct 18, 2020

This pull request implements partial solution to the problem described in #324:

  • String representation issue stemming from Python 2 -> Python 3 transformation in TXT field of DBus message when publishing new Services with Avahi daemon

In machinekit#324 it became obvious, that changes in how strings are represented in Python 3 from legacy Python 2 caused that request through DBus to Avahi were rejected. Python Avahi module includes function 'string_array_to_txt_array', which transcodes Python strings into byte arrays.

Only used on the TXT value, as all others seem to be working. (Minimal changes to just get working system.)
@the-snowwhite the-snowwhite merged commit 61a8d28 into machinekit:master Oct 19, 2020
@cerna cerna deleted the python-avahi-service branch October 19, 2020 18:50
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.

2 participants