-
Notifications
You must be signed in to change notification settings - Fork 108
Add the Bluetooth agent API (for BlueZ) v3 #2107
base: master
Are you sure you want to change the base?
Commits on Jun 2, 2016
-
sol-bus: Ignore not mapped interfaces and paths
In case there's no known handler for a given (interface, path) pair, it's should not be considered an error. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 35e1b9a - Browse repository at this point
Copy the full SHA 35e1b9aView commit details -
sol-gatt: Update the none implementation
The sol-gatt API has changed, so we must keep the none implementation up to date so it at least compiles. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5e7c915 - Browse repository at this point
Copy the full SHA 5e7c915View commit details -
sol-bluetooth: Introduce the agent API
The agent will be used when request user input, necessary mostly when pairing. The API is heavily based on the Zephyr's API, which maps nicely to the BlueZ D-Bus API. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fff2a2e - Browse repository at this point
Copy the full SHA fff2a2eView commit details -
sol-bluetooth: Implement the agent API for BlueZ
The agent will allow to user input to be handled so pairing procedures and the user can properly authorize and provide input. In Bluetooth, depending on the input/output capabilities of the device the pairing may use different procedures with different security characteristics, the choice of the input/output capabilities with the agent API depend on which of the agent callbacks are implemented. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a049837 - Browse repository at this point
Copy the full SHA a049837View commit details -
samples/bluetooth: Add a simple-pair sample
This sample tries pairing with the device (if provided) implementing only the pairing_confirm() callback, which means that the capabilties would be equivalent to a device which implements the "DisplayYesNo" capability. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9afd7d3 - Browse repository at this point
Copy the full SHA 9afd7d3View commit details -
samples/bluetooth: Print the device name when browsing
Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for eaa2202 - Browse repository at this point
Copy the full SHA eaa2202View commit details -
sol-gatt: Add sol_gatt_pending_get_conn()
This allows the connection in which a GATT operation is happening to be retrieved by the pending handle. This may be useful when the value of characteristic is different depending on the device accessing it, for example. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6c1d2d5 - Browse repository at this point
Copy the full SHA 6c1d2d5View commit details -
sol-bluetooth: Fix receiving pairing attempts
When receiving a pairing attempt, it's possible that there aren't any 'sol_bt_conn' objects associated yet, in that case, the connection object must be created. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d135fb - Browse repository at this point
Copy the full SHA 2d135fbView commit details -
sol-gatt: Update to the new BlueZ API
Since commit "93b64d9ca8a2bb6 doc/gatt-api: Add options dictionary to ReadValue/WriteValue" BlueZ passes a dictionary to its ReadValue()/WriteValue() operations, informing the device which is making the operation and the offset of the operation. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aa2b46a - Browse repository at this point
Copy the full SHA aa2b46aView commit details -
sol-bus: Add a helper to parse dictionaries
In D-Bus, there isn't the concept of dictionaries, only dictionary entries and arrays, and using them is pretty common, so it makes sense to provide a helper to parse dictionaries. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f716166 - Browse repository at this point
Copy the full SHA f716166View commit details -
sol-gatt: Use sol_bus_parse_dict() to parse methods arguments
Now that sol_bus_parse_dict() is available, we can make use of it. Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ca66fe5 - Browse repository at this point
Copy the full SHA ca66fe5View commit details -
sol-gatt: Fix keeping pending callbacks around
There was a problem that some cases of GATT pending callback were being kept around for more time than was necessary. For that to work it was also needed to pay more attention to the lifetime of the buffer passed to sol_gatt_pending_reply(). Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for fd5679d - Browse repository at this point
Copy the full SHA fd5679dView commit details -
sol-gatt: Fix possible use of unitialized variable warning
Signed-off-by: Vinicius Costa Gomes <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 33958dc - Browse repository at this point
Copy the full SHA 33958dcView commit details