adafruit / Adafruit_CircuitPython_PortalBase

Base Library for the Portal-style libraries.
MIT License
18 stars 17 forks source link

Lazily parse secrets data #80

Closed tekktrik closed 2 years ago

tekktrik commented 2 years ago

Resolves #79 by moving the parsing of the secrets data to connect(). This allows for initialization of the MagTag object when a non-standard secrets dictionary is given. This is done when an alternative way of connecting to WiFi besides the MagTag-specific connect() is desired (such as wifi.radio.connect()). This was valid functionality before #, and this just restores it.

Have not tested.