-
Notifications
You must be signed in to change notification settings - Fork 26
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
Use simppl to access BLE advertisement messages? #33
Comments
Yes, this should be possible with simppl. Calling StartDiscovery you just
need a simppl Stub with appropriate object path set. I don't have any
example code for this, just for advertising a BLE GATT service. Do you know
how to wait for BLE advertisement messages on D-BUS? I haven't found
anything in a hurry.
Regards,
Martin
Am Di., 8. Aug. 2023 um 23:26 Uhr schrieb Mogens Beltoft <
***@***.***>:
… Is it possible to use simppl to call the StartDiscovery method in Bluez,
and then listen for BLE advertisement messages?
—
Reply to this email directly, view it on GitHub
<#33>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHB2B5YYSF2CXNSIYRQDKDXUKVI3ANCNFSM6AAAAAA3JCFDX4>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
OK, I'll look into your code, I can see you have a stub or two there. |
In that case, you can also just use the iterator interface to deserialize
your message:
DBusMessageIter iter;
dbus_message_iter_init(msg, &iter);
// simppl call, just add the types in the list of arguments
decode(iter, bus_name, old_name, new_name);
Am Mi., 9. Aug. 2023 um 15:09 Uhr schrieb Mogens Beltoft <
***@***.***>:
… OK, I'll look into your code, I can see you have a stub or two there.
Yes, I have a working prototype for listening for BLE advertisement
messages in "raw" D-Bus code. Decoding the messages is the problem due to
all the iterators you have to go through to get to the data.
—
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHB2BYCJVQL7NGYLQ25SLDXUODYNANCNFSM6AAAAAA3JCFDX4>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is it possible to use simppl to call the StartDiscovery method in Bluez, and then listen for BLE advertisement messages?
The text was updated successfully, but these errors were encountered: