NabtoDeviceEvent()

DESCRIPTION

General events relevant for the application. Events provides information about the device connection to the basestation, ie registration with the Nabto servers. Only when the device is attached to the basestation will remote connections to the device be possible. If the attach procedure fails due to basestation not recognizing the Product ID, Device ID, or Fingerprint configured for the device, an event is also emitted. If the connection to the basestation is lost, a dettached event is emitted. Unless closed by the user, the device will automatically attempt to reattach to the basestation after a non-successful attach.

NABTO_DEVICE_EVENT_ATTACHED
NABTO_DEVICE_EVENT_DETACHED
NABTO_DEVICE_EVENT_CLOSED
NABTO_DEVICE_EVENT_UNKNOWN_FINGERPRINT
NABTO_DEVICE_EVENT_WRONG_PRODUCT_ID
NABTO_DEVICE_EVENT_WRONG_DEVICE_ID

DECLARATION

typedef int NabtoDeviceEvent