Editing Documentation/Maemo 5 Developer Guide/Using Connectivity Components/Maemo Connectivity
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
Warning: This page is 60 kilobytes long; some browsers may have problems editing pages approaching or longer than 32kb. Please consider breaking the page into smaller sections.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 510: | Line 510: | ||
=== Discovering devices === | === Discovering devices === | ||
- | Maemo provides | + | Maemo provides D-BUS interface for displaying bluetooth device search dialog (You can find list of available Bluetooth D-BUS calls [[#D-Bus Connectivity UI Interface|here]]). |
Devices can be searched with following steps: | Devices can be searched with following steps: | ||
- | # Set up | + | # Set up D-BUS connection |
- | # call | + | # call bt_ui.search_req to show dialog - you can filter the results |
- | # catch | + | # catch bt_ui.search_result signal |
- | # process | + | # process results |
- | Here | + | |
+ | Here's working example in C how this is done: | ||
<source lang="c"> | <source lang="c"> | ||
- | // Bluetooth discovery example - bluetooth libraries | + | //Bluetooth discovery example - bluetooth libraries won't work in SDK! |
#include <hildon/hildon-program.h> | #include <hildon/hildon-program.h> | ||
#include <dbus/dbus.h> | #include <dbus/dbus.h> |
Learn more about Contributing to the wiki.