tve/mqboard

Dot notation for accessing config dictionary does not work

Opened this issue · 0 comments

Accessing config dictionary values in Micropython does not work. The example here: https://github.com/tve/mqboard/blob/master/mqtt_async/hello-world.py accesses config values using dot notation. These (and probably in many other example files) need to be converted to the standard dict['key'] notation.

Error:

>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
  File "<stdin>", line 34, in <module>
AttributeError: 'dict' object has no attribute 'subs_cb'

Micropython version:
MicroPython v1.19.1-824-g30db33d1e on 2023-01-19; Raspberry Pi Pico W with RP2040

Platform:
Raspberry Pi Pico W