Enumeration CharacteristicEventTypesConst

Enumeration Members

Enumeration Members

CHANGE: "change"

Emitted after a new value is set for the characteristic. The new value can be set via a request by a HomeKit controller or via an API call.

GET: "get"

This event is thrown when a HomeKit controller wants to read the current value of the characteristic. The event handler should call the supplied callback as fast as possible.

HAP-NodeJS will complain about slow running get handlers after 3 seconds and terminate the request after 10 seconds.

SET: "set"

This event is thrown when a HomeKit controller wants to write a new value to the characteristic. The event handler should call the supplied callback as fast as possible.

HAP-NodeJS will complain about slow running set handlers after 3 seconds and terminate the request after 10 seconds.