Characteristic Property

The currently selected characteristic's Id.

Syntax

ANSI (Cross Platform)
char* GetCharacteristic();
int SetCharacteristic(const char* lpszCharacteristic); Unicode (Windows) LPWSTR GetCharacteristic();
INT SetCharacteristic(LPCWSTR lpszCharacteristic);
#define PID_BLECLIENT_CHARACTERISTIC 2

IPWORKSBLE_EXTERNAL void* IPWORKSBLE_CALL IPWorksBLE_BLEClient_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSBLE_EXTERNAL int IPWORKSBLE_CALL IPWorksBLE_BLEClient_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

Setting the Characteristic property to the Id of a discovered characteristic allows you to inspect the descriptors which have been discovered for it using the Descriptor* properties.

Characteristic can either be set to the Id of a characteristic which has been discovered for the service currently selected by Service, or to empty string.

This property is automatically set when you call the Select method; and it is reset to empty string when you set Service.

This property is not available at design time.

Data Type

String

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks BLE 2020 C++ Edition - Version 20.0 [Build 8158]