Azure Sphere not connecting to the Internet / MQTT-C

Roger Mahler 226 Reputation points
2021-01-20T14:44:28.967+00:00

I am attempting to get the MQTT-C running on the Azure Sphere device - https://github.com/xiongyu0523/azure-sphere-mqtts - but somewhere in the process things have gotten a little out of alignment: this is what i am seeing in the cli...

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.
167 questions
0 comments No comments
{count} votes

Accepted answer
  1. Roger Mahler 226 Reputation points
    2021-01-20T16:28:11.333+00:00

    A reboot of the computer, and unplugging the Sphere device and connectivity came back - but i have a lot of entries for a single SSID i need to clean up.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.