MagTag Network Connection Error

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mawill13
 
Posts: 9
Joined: Tue Dec 24, 2019 3:08 pm

MagTag Network Connection Error

Post by mawill13 »

I am not able to get the MagTag to connect to my network. It sees the network;
OgreNet RSSI: -86 Channel: 6

Connecting to OgreNet
Traceback (most recent call last):
File "code.py", line 30, in <module>
ConnectionError: No network with that ssid

line 30 of code.py:

Code: Select all

wifi.radio.connect(secrets["ssid"], secrets["password"])
Full code.py attached....
Attachments
code.py
(1.75 KiB) Downloaded 7 times

User avatar
kattni
 
Posts: 132
Joined: Fri Aug 18, 2017 6:33 pm

Re: MagTag Network Connection Error

Post by kattni »

The only inconsistency I can find is that you're using single quotes (') instead of double quotes (") around ssid and password in your code.py. In theory that shouldn't matter, but try that change before diving deeper into things.

User avatar
mawill13
 
Posts: 9
Joined: Tue Dec 24, 2019 3:08 pm

Re: MagTag Network Connection Error

Post by mawill13 »

I saw that too and tried and tried it before posting and I get the same result. But, for giggles I will try again.

User avatar
jay0lee
 
Posts: 12
Joined: Wed Oct 21, 2020 11:03 am

Re: MagTag Network Connection Error

Post by jay0lee »

I'd try running through the Internet test code and seeing where that stops. Does it list nearby WiFI APs even?

https://learn.adafruit.com/collaborativ ... ernet-test

User avatar
mawill13
 
Posts: 9
Joined: Tue Dec 24, 2019 3:08 pm

Re: MagTag Network Connection Error

Post by mawill13 »

It sees all of the SSID's in range. I am going to try to connect it to my phone and see if it is a connection quality issues.

BTW Are you the same jay0lee that publishes GAM?

User avatar
jay0lee
 
Posts: 12
Joined: Wed Oct 21, 2020 11:03 am

Re: MagTag Network Connection Error

Post by jay0lee »

Could be connection quality, yes. These devices likely don't have the WiFi radio strength a laptop would...

Yep, I'm the author of https://git.io/gam :-)

User avatar
mawill13
 
Posts: 9
Joined: Tue Dec 24, 2019 3:08 pm

Re: MagTag Network Connection Error

Post by mawill13 »

I thought so. Your screen name is fairly unique. We have had a few interactions but since I moved to GAM-Adv I have worked more with Ross.

User avatar
mawill13
 
Posts: 9
Joined: Tue Dec 24, 2019 3:08 pm

Re: MagTag Network Connection Error

Post by mawill13 »

Connection successful using my phone as a hotspot. Apparently the Wi-Fi radio is not very powerful. Also, my work bench it not close to my router.

Locked
Please be positive and constructive with your questions and comments.

Return to “AdaBox! Show us what you made!”