CHAILink SDK  Version 1.3
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
typedef void(* NH_LOCALDEVICE_NOTIFICATION)(CPHOBJECT const hLocalDevice, ObjectTypes const deviceType, CPUINT32 const dwDeviceUserData, LocalDeviceNotificationTypes const notification)

This notification informs the application about some update related to a local device.

Parameters
[in]hLocalDeviceHandle to the notified local device.
[in]deviceTypeType of the notified local device. See ObjectTypes
[in]dwDeviceUserDataThe user data associated to the device handle during its creation.
[in]notificationNotification type. See LocalDeviceNotificationTypes enumeration in CLC_Enums.h.
Remarks
CAUTION: this notification is called just before the device redeclaration with the new identity, so DO NOT CALL Declare() FROM HERE! It is safe to change custom name (for example), the network update will be done automatically. Calling Declare() here can result in a ghost device appearing on the network.
This notification is activated by using LocalDevice_RegisterNotificationHandler.