Syntax
VM_RESULT vm_bt_gatt_server_add_service(
    VM_BT_GATT_CONTEXT_HANDLE context, 
    const vm_bt_gatt_service_info_t* service_id, 
    VMUINT16 num_handles
);
ContentsIndex
PreviousUpNext
vm_bt_gatt_server_add_service
Syntax
VM_RESULT vm_bt_gatt_server_add_service(
    VM_BT_GATT_CONTEXT_HANDLE context, 
    const vm_bt_gatt_service_info_t* service_id, 
    VMUINT16 num_handles
);
Description

Creates a new service. The result and corresponding service handle is passed to vm_bt_gatt_service_added_callback for each services created. Therefore, vm_bt_gatt_service_added_callback will be invoked 5 times if num_handles is set to 5.

Parameters
Parameters 
Description 
VM_BT_GATT_CONTEXT_HANDLE context 
[IN] Server context from vm_bt_gatt_register_server_callback
const vm_bt_gatt_service_info_t* service_id 
[IN] Array of service UUIDs for the services to be created. 
VMUINT16 num_handles 
[IN] Number of elements in array service_id. The maximum number of services can be created depends on the available memory resource. 
Returns
File

vmbt_gatt.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.