-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
Invalid arguments in method call for SetDiscoveryFilter with RSSI #23
Comments
So I investigated this and it seams that there is an issue in the dbus library when encoding numbers as variants. |
Any updates on this one ? I am trying to set the "adapter.SetDiscoveryFilter({ DuplicateData: true })" yet I am not able to see the devices in the scan. What should be done ? @Waeco : What should be done ? |
For anyone interested in this to work. I rewrote the library to use dbus-next which should fix this issue. You can now pass along the datatype as Dbus.Variant: adapter.SetDiscoveryFilter({
RSSI: new Dbus.Variant("n", -100), // need to use variant to set correct data type
DuplicateData: true,
}); See: tests/discovery-filter.js for details. |
Hi @Waeco, thank you for your work. By the way, is there a plan to migrate the current master to use the dbus-next version of the repo. Thanks again for your help. |
Still waiting on dbusjs/node-dbus-next#67 to be merged. |
Hello
I experience a
DBusError: Invalid arguments in method call
when I try to specify theRSSI
threshold in theSetDiscoveryFilter
of an adapter:The
getDiscoveryFilters
returns the following array, showingRSSI
as a valid filter :[ 'UUIDs', 'RSSI', 'Pathloss', 'Transport', 'DuplicateData', 'Discoverable', 'Pattern' ]
Is there anything that should be done to pass numbers properly? For example, specifying a boolean filter works as intented:
Thanks for your help!
The text was updated successfully, but these errors were encountered: