We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const sysBus = dbus.systemBus(); const SERVICE_NAME = "org.freedesktop.NetworkManager"; const NM_OBJECT_PATH = "/org/freedesktop/NetworkManager"; const DEVICE_IFACE = "org.freedesktop.NetworkManager"; sysBus .getService(SERVICE_NAME) .getInterface(NM_OBJECT_PATH, DEVICE_IFACE, (err, nm) => { console.log(err, nm); // This does not work, nm.Devices is not a function // nm.Devices((e,v) => { console.log(e,v)}); // This works nm.$readProp("Devices", (e, v) => { console.log(e, v); }); });
How do I call the getter as a function? I am using Node 16.19.
The text was updated successfully, but these errors were encountered:
I haven't used dbus-native in a long time but what you do looks correct
All properties are added to the interface like this:
dbus-native/lib/introspect.js
Line 155 in 2859556
What is the content of nm.$properties ?
nm.$properties
Sorry, something went wrong.
Try do add a breakpoint here
Line 62 in 2859556
Can you also post interface xml definition you are getting so I can create some test scripts without actually connecting to dbus-daemon ?
No branches or pull requests
How do I call the getter as a function?
I am using Node 16.19.
The text was updated successfully, but these errors were encountered: