Disconnected Event

Fired when the class has been disconnected from the remote device.

Syntax

ANSI (Cross Platform)
virtual int FireDisconnected(BLEClientDisconnectedEventParams *e);
typedef struct {
int StatusCode;
const char *Description; int reserved; } BLEClientDisconnectedEventParams; Unicode (Windows) virtual INT FireDisconnected(BLEClientDisconnectedEventParams *e);
typedef struct {
INT StatusCode;
LPCWSTR Description; INT reserved; } BLEClientDisconnectedEventParams;
#define EID_BLECLIENT_DISCONNECTED 3

virtual INT IPWORKSBLE_CALL FireDisconnected(INT &iStatusCode, LPSTR &lpszDescription);

Remarks

If the connection is broken normally, StatusCode is 0 and Description is "OK".

If the connection is broken for any other reason, StatusCode has the error code returned by the Bluetooth stack. Description contains a description of this code.

Refer to the Disconnect section for more information.

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