From a8d8db0b5fbc67569b04470444f42cb9c6296303 Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Thu, 20 Jun 2019 12:49:03 -0700 Subject: binding: bluetooth-pbap: add import verb to improve transfer of contacts Previously contacts are requested on every connection of a device by OBEX transfers, and due to issues with transfer rates it should be only done when requested. import verb requests new phonebook transfer, and returns data as the contacts verb currently does. Also this patchset switchs from the canonical MAC address to using the identifier from the Bluetooth stack for better connection tracking. Bug-AGL: SPEC-2541 Change-Id: I27ad0626248e8dba0cacd65f34843b8eec2ca754 Signed-off-by: Matt Ranostay --- README.md | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 5d72482..8520dcd 100644 --- a/README.md +++ b/README.md @@ -6,19 +6,30 @@ Bluetooth PBAP service reports respective vCard phonebook data from BlueZ via co ## Verbs -| Name | Description | JSON Response | -|-------------|-------------------------------------------|----------------------------------------------------| -| subscribe | subscribe to Bluetooth PBAP events | *Request:* {"value": "status"} | -| unsubscribe | unsubscribe to Bluetooth PBAP events | *Request:* {"value": "status"} | -| contacts | return all contacts from connected device | see **contacts verb section** | -| entry | return vCard data from handle | see **entry verb section** | -| history | return call history list | see **history verb section** | -| search | search for respective vCard handle | see **search verb section** | -| status | current device connection status | same response as noted in **status event section** | +| Name | Description | JSON Response | +|-------------|--------------------------------------------|----------------------------------------------------| +| subscribe | subscribe to Bluetooth PBAP events | *Request:* {"value": "status"} | +| unsubscribe | unsubscribe to Bluetooth PBAP events | *Request:* {"value": "status"} | +| import | request contact data from connected device | see **import verb section** | +| contacts | return all contacts from connected device | see **contacts verb section** | +| entry | return vCard data from handle | see **entry verb section** | +| history | return call history list | see **history verb section** | +| search | search for respective vCard handle | see **search verb section** | +| status | current device connection status | same response as noted in **status event section** | + + +### import Verb + +Requests phonebook from connected device via OBEX transfers, caches the results to a database, and +returns a response as documented in the **contacts verb section** + ### contacts Verb -Returns all vCards that are accessible from respective connected device in concatenated output: +Returns all vCards that are accessible from respective connected device in concatenated output +from the cached database. + +NOTE: This doesn't request refreshed data from device
 
-- 
cgit 1.2.3-korg