WriteResponse Event

Fired when the server acknowledges a successful value write request.

Syntax

ANSI (Cross Platform)
virtual int FireWriteResponse(BLEClientWriteResponseEventParams *e);
typedef struct {
const char *ServiceId;
const char *CharacteristicId;
const char *DescriptorId;
const char *Uuid;
const char *Description; int reserved; } BLEClientWriteResponseEventParams; Unicode (Windows) virtual INT FireWriteResponse(BLEClientWriteResponseEventParams *e);
typedef struct {
LPCWSTR ServiceId;
LPCWSTR CharacteristicId;
LPCWSTR DescriptorId;
LPCWSTR Uuid;
LPCWSTR Description; INT reserved; } BLEClientWriteResponseEventParams;
#define EID_BLECLIENT_WRITERESPONSE 13

virtual INT IPWORKSBLE_CALL FireWriteResponse(LPSTR &lpszServiceId, LPSTR &lpszCharacteristicId, LPSTR &lpszDescriptorId, LPSTR &lpszUuid, LPSTR &lpszDescription);

Remarks

This event is fired when the server acknowledges a successful value write request for a characteristic or descriptor.

ServiceId holds the Id of the service.

CharacteristicId holds the Id of the characteristic.

DescriptorId holds the Id of the descriptor. This is only populated when a descriptor value is written.

Uuid and Description are the UUID and Bluetooth SIG user-friendly name (if one is defined) of the characteristic or descriptor.

Note that this event is not fired if the write request was sent using PostValue, regardless of the outcome.

Refer to the WriteValue method for more information.

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