Skip to content

WiFiManager debug not working #37

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

Closed
rdagger opened this issue Apr 18, 2019 · 3 comments · Fixed by #40
Closed

WiFiManager debug not working #37

rdagger opened this issue Apr 18, 2019 · 3 comments · Fixed by #40

Comments

@rdagger
Copy link

rdagger commented Apr 18, 2019

An error is thrown upon connection if you set debug to true:

wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(esp, secrets, None)
wifi.debug = True

File "adafruit_esp32spi/adafruit_esp32spi_wifimanager.py", line 108, in get
File "adafruit_esp32spi/adafruit_esp32spi_wifimanager.py", line 72, in connect
AttributeError: 'module' object has no attribute 'WL_IDLE_STATUS'

Also the status_pixel parameter is supposed to be optional, but it's not.

@rdagger
Copy link
Author

rdagger commented Apr 19, 2019

Disregard regarding debugging. I figured out that you can't set the debug from the WifiManager. Instead it has to be set when you initialize adafruit_esp32spi.

esp = adafruit_esp32spi.ESP_SPIcontrol(spi, esp32_cs, esp32_ready, esp32_reset, debug=True)
wifi = adafruit_esp32spi_wifimanager.ESPSPI_WiFiManager(esp, secrets, None)

But the status_pixel parameter is supposed to be optional.

@brentru
Copy link
Member

brentru commented Apr 25, 2019

The latest release fixes the debug parameter. Do you still see this issue when using it?

@rdagger
Copy link
Author

rdagger commented Apr 26, 2019

Yes, it's working. Thanks.

@rdagger rdagger closed this as completed Apr 26, 2019
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 a pull request may close this issue.

2 participants