Syntax
VM_RESULT vm_bt_gatt_server_set_advertisement_data(
    VM_BT_GATT_CONTEXT_HANDLE context, 
    VMBOOL set_scan_response, 
    VMBOOL include_name, 
    VMBOOL include_txpower, 
    VMUINT16 min_interval, 
    VMUINT16 max_interval, 
    VMUINT16 appearance, 
    VMUINT16 manufacturer_length, 
    VMCHAR* manufacturer_data, 
    VMUINT16 service_data_length, 
    VMCHAR* service_data, 
    vm_bt_uuid_with_length_t* service_uuid
);
ContentsIndex
PreviousUpNext
vm_bt_gatt_server_set_advertisement_data
Syntax
VM_RESULT vm_bt_gatt_server_set_advertisement_data(
    VM_BT_GATT_CONTEXT_HANDLE context, 
    VMBOOL set_scan_response, 
    VMBOOL include_name, 
    VMBOOL include_txpower, 
    VMUINT16 min_interval, 
    VMUINT16 max_interval, 
    VMUINT16 appearance, 
    VMUINT16 manufacturer_length, 
    VMCHAR* manufacturer_data, 
    VMUINT16 service_data_length, 
    VMCHAR* service_data, 
    vm_bt_uuid_with_length_t* service_uuid
);
Description

Configures server advertisement behavior and packet data.

Parameters
Parameters 
Description 
VM_BT_GATT_CONTEXT_HANDLE context 
[IN] Client context from vm_bt_gatt_register_client_callback
VMBOOL set_scan_response 
[IN] Reserved, must be 0. 
VMBOOL include_name 
[IN] Set to VM_TRUE to include device name in the advertisement packet. Set to VM_FALSE to exclude. 
VMBOOL include_txpower 
[IN] Set to VM_TRUE to include tx power in the advertisement packet. Set to VM_FALSE to exclude. 
VMUINT16 min_interval 
[IN] Set the minimum advertisement interval. 
VMUINT16 max_interval 
[IN] Set the maximum advertisement interval. 
VMUINT16 appearance 
[IN] The appearance category as in Bluetoot 4.0 spec. manufacturer_length:[IN] Length of the manufacturer_data. 
VMCHAR* manufacturer_data 
[IN] Manufacturer data in the advertisement packet. service_data_length:[IN] Length of the service_data. 
VMCHAR* service_data 
[IN] Service data in the advertisement packet. service_uuid_length:[IN] Optional, number of services in service_uuid array. 
vm_bt_uuid_with_length_t* service_uuid 
[IN] Optional, an array of service UUIDs to be included in the advertisement packet. Currently, only 16-bit UUIDs are supported. 
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.