<dagb>
FLHerne: yes. This is my first attempt at talking with dbus ever, so I am likely still missing something very obvious. I see how to query modemmanager for information about modemmanager, and I see how to query a modem about stuff.
<dagb>
But not how to query modemmanager about "what modems can you see".
<FLHerne>
introspect /org/freedesktop/ModemManager/Modems and get the children
<FLHerne>
(and how you do *that* depends on which tool/lib you're using)
<FLHerne>
qdbus should just show you a nice tree
<dagb>
I am certain it is something I do not understand yet, but I have been banging my head at this a couple of nights with very little to show for it.
<FLHerne>
All the Modem objects are child nodes of ModemManager/Modems
<dagb>
FLHerne: see, I am unable to parse from the doc that org.freedesktop.ModemManager1 has a Method or property 'Modems'.
<FLHerne>
"Modem objects are exported in DBus with the following path base: /org/freedesktop/ModemManager1/Modems/#, where # indicates a unique unsigned integer which identifies the object. "
<FLHerne>
DBus paths are a tree, if some path exists the parent [generally?] does
* FLHerne
isn't a DBus expert, just someone who has to deal with it occasionally ;-)
<dagb>
FLHerne: In the kingdom of the blind and so on...
<FLHerne>
Anyway, you can treat [most?] DBus APIs pretty much like a filesystem
<FLHerne>
If there are nodes at some path, you can list them by going up a level
<dagb>
FLHerne: thank you. I have a tiny thread to pull and a tutorial to guide me. Will give it another go.
<FLHerne>
fwiw, it seems the above only applies if the application implements 'org.freedesktop.DBus.Introspectable', but I've never encountered a useful DBus API that doesn't
<dagb>
FLHerne: I am getting the impression that d-feet will show you everything there is about dbus. I see no object named org.freedesktop.ModemManger1.Modem*s* there. Should I?
<FLHerne>
[using NetworkManager because I don't have a modem but the APIs seem similar]
<FLHerne>
Note that qdbusviewer shows the Devices/ node, whereas d-feet doesn't for whatever reason
<dagb>
FLHerne: I appreciate the help.
<dagb>
Still feel like I am missing something major. Need to find more sample code.
<dagb>
finally got something...
alanc has quit [Remote host closed the connection]
alanc has joined #freedesktop
<hikiko>
ag ioanni
ambasta has joined #freedesktop
<ambasta>
dhcp4 (wlan0): error -97 dispatching events .. what is error -97
<ambasta>
This is followed by state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
<ambasta>
This is for networkmanager btw, in case it wasn't clear
<dcbaker>
ambasta: i think you'll have better luck at #nm (i think they're here on OFTC now), this is more for support of the freedesktop infrastructure (gitlab, etc)
<ambasta>
Got it, thanks dcbaker
<ambasta>
Though it seems #nm is on libera instead
<dcbaker>
ambasta, np. they still list in their website their on freenode... Lol
jljusten has quit [Quit: WeeChat 3.0.1]
chomwitt has quit [Remote host closed the connection]