Replies: 1 comment
-
|
Hello @tisauro Please use To catch all changes to ActiveConnection objects do something like this: Remember to set default bus to system bus. There won't be any errors if you use wrong bus and it will just not catch anything. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
after calling
network_manager.activate_connectionI am trying to catch the event StateChanged for the ActiveConnection because I would like the find out the reason why the connection to a new WiFi network failed, for instance NM_ACTIVE_CONNECTION_STATE_REASON_LOGIN_FAILEDI have tried several things but cannot see the state and reason in any of the events I subscribed for, so far I tried:
async for state, reason in DbusInterfaceCommonAsync.properties_changed.catch_anywhere( 'org.freedesktop.NetworkManager.Connection.Active' ):and
async for state, reason in ActiveConnection(active_connection_path).state_changed.catch_anywhere('org.freedesktop.NetworkManager'): log.debug(f'path: {state}, data:{reason}')could someone provide a working example please?
Thank you in advance
Mauro
Beta Was this translation helpful? Give feedback.
All reactions