Open bluecmd opened 2 months ago
As for how mmcli -L
implements it, it seems to have to do with DBusObjectManager:
Sadly, this seems to not be implemented in the library used here for dbus communication: https://github.com/godbus/dbus/issues/57 unless I am missing something
Hi,
When using
Client.ForEachModem
and the first modem index is e.g. 2, the callback is never executed. This seems to be because there is a built-in assumption that the list is sequential. This is only true on boot. If you have a USB modem and plug it in, unplug it, and plug it back in it will likely have an index >1 causingClient.ForEachModem
to no longer connect the modem.