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

Subscribe & Unsubscribe won't accept list #102

Open
DJDevon3 opened this issue May 21, 2023 · 0 comments
Open

Subscribe & Unsubscribe won't accept list #102

DJDevon3 opened this issue May 21, 2023 · 0 comments

Comments

@DJDevon3
Copy link

This works

io.subscribe("BME280-Unbiased")
io.subscribe("BME280-RealTemp")

attempting to subscribe to 2 feeds simultaneously doesn't work. here are a few of the iterations I tried.

io.subscribe("BME280-Unbiased", "BME280-RealTemp")
io.subscribe([("BME280-Unbiased", "BME280-RealTemp")])
io.subscribe([('BME280-Unbiased'), ('BME280-RealTemp')])

According to the docs

client.subscribe([('temperature'), ('humidity')])

should work but does not, returns
TypeError: can't convert 'list' object to str implicitly

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

1 participant