Replies: 5 comments 2 replies
-
|
Hello @tisauro Have you tried |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the prompt response @igo95862 I did but didn't understand the values in the returned tuple: I am expecting (4, 10) (NM_ACTIVE_CONNECTION_STATE_REASON_LOGIN_FAILED= 10) because I was providing the wrong password. And that is the feedback I would like to provide to the enduser. What the reason why I am getting (4, 3) |
Beta Was this translation helpful? Give feedback.
-
|
There is also device state change signal which might hold the information you want: https://python-sdbus-networkmanager.readthedocs.io/en/latest/device_interfaces.html#sdbus_async.networkmanager.NetworkManagerDeviceInterfaceAsync.state_changed |
Beta Was this translation helpful? Give feedback.
-
|
Also you might be interested in WPA_supplicants D-Bus API as it is the actual program that handles WiFi authentication. (unless you are using iwd backend): https://w1.fi/wpa_supplicant/devel/dbus.html I believe NetworkManager delegates all WiFi authentication to it so it might not posses the actual reason why WiFi login fails. |
Beta Was this translation helpful? Give feedback.
-
|
@igo95862 thank you again for the info all makes sense now. I will investigate all the above options. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello team
I am trying to get the StateReason of the active connection to return the feedback why the connection failed , I can see the Deactivated event but so far I have been unable to retrieve the StateReason, below a snapshot of my code.
Anyone who could point me the right direction please?
thank you
Beta Was this translation helpful? Give feedback.
All reactions