AZSphere Trouble connecting to network

Roger Mahler 226 Reputation points
2021-01-20T20:36:24.213+00:00

So i am having the same problem - i am unable to get the device to attach to the network, is there some trick to getting internet access or did i miss something.

azsphere device wifi show-status

     SSID                : AEgir-Development
     Configuration state : enabled
     Connection state    : connected
     Security state      : psk
     Frequency           : 5745
     Mode                : station
     Key management      : WPA2-PSK
     WPA State           : COMPLETED
     IP Address          : 10.10.1.126
     MAC Address         : 00:02:b5:03:32:81

azsphere device network list-interfaces

3 Network interface(s)

     Interface name                   : lo
     Network interface up             : True
     Connected to network             : False
     Acquired IP address              : False
     Connected to internet            : False

     Interface name                   : sl0
     Network interface up             : True
     Connected to network             : False
     Acquired IP address              : False
     Connected to internet            : False

     Interface name                   : wlan0
     Network interface up             : True
     Connected to network             : True
     Acquired IP address              : True
     Connected to internet            : False

 Hardware address                 : 00:02:b5:03:32:81

azsphere device network show-diagnostics

 Timestamp           : 2021-01-20t02:25:58+0000
 Network ID          : 0
 SSID                : AEgir-Development
 Last Recorded Error : WrongKey
 Configuration State : enabled
 Connection State    : connected
 No certificate errors logged.

in the show diagnostics i do not know what WrongKey is really telling me, at i can not find it anywhere...

and when i run the code and execute the following:

 Networking_GetInterfaceConnectionStatus(networkInterface, &status)

i get some funky return code of 7 -

it did seem to connect at one time but not sure what is currently gong on - does anyone have any thoughts?

thank you for your help and support. if this is the wrong place to post this my apologies, where would be a better place to post.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
168 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 34,616 Reputation points
    2021-01-21T11:00:37.647+00:00

    @Roger Mahler We are sorry to hear that you're facing issues with network connectivity for your Azure Sphere device.
    You are at the right place for the help. We are happy to help you in resolving the issue.

    When a network failure occurs, you can get diagnostic information about the failure in two ways: through a call to the WifiConfig API and from the command line.

    As you have already used the azsphere device network show-diagnostics command to display diagnostic information about the last error and it appears to be that you have mentioned WrongKey<Network credentials>.

    If your device is connected to the incorrect network or is connected but with the wrong attributes, make sure that the network configuration is correct. If you changed the configuration, you must reload it. In an application, call WifiConfig_ReloadConfig or on the command line, use the azsphere device wifi reload-config command to reload the current configuration. To ensure that the network configuration persists across reboots, an app can call WifiConfig_PersistConfig.

    I would suggest you, kindly go through the Troubleshoot network problems documentation and see if helps. Also, check Set up Wi-Fi on your Azure Sphere device

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.