ServerUpdate Event

Fired when the currently connected server updates its name or available services.

Syntax

ANSI (Cross Platform)
virtual int FireServerUpdate(BLEClientServerUpdateEventParams *e);
typedef struct {
const char *Name;
const char *ChangedServices; int reserved; } BLEClientServerUpdateEventParams; Unicode (Windows) virtual INT FireServerUpdate(BLEClientServerUpdateEventParams *e);
typedef struct {
LPCWSTR Name;
LPCWSTR ChangedServices; INT reserved; } BLEClientServerUpdateEventParams;
#define EID_BLECLIENT_SERVERUPDATE 7

virtual INT IPWORKSBLE_CALL FireServerUpdate(LPSTR &lpszName, LPSTR &lpszChangedServices);

Remarks

This event is fired under one of two conditions, both of which involve some sort of server-side change other than the value of a subscribed characteristic having changed (subscribed characteristic value updates are delivered through the Value event).

If the server's name has changed, this event is fired with the new name in the Name parameter, and the ServerName property is updated as well.

If the server's services have changed, this event is fired with a non-empty value in the ChangedServices parameter.

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