adafruit / Adafruit_CircuitPython_AdafruitIO

Adafruit IO for CircuitPython
http://io.adafruit.com
MIT License
49 stars 33 forks source link

Subscribe & Unsubscribe won't accept list #102

Closed DJDevon3 closed 3 months ago

DJDevon3 commented 1 year ago

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

tyeth commented 3 months ago

Appears that the docs have been updated to not accept a list (except for publish_multiple). Closing this for now