Skip to content

Generate Events

Functions to register BACnet clients for events and generate mock events.

Functions

registerRecipient(device_id, notification_class_object_instance, confirmed)


Register a BACnet client in the recipient list of a Notification Class Instance

Params

  • device_id number - The device instance ID of the BACnet client to be registered
  • notification_class_object_instance number - The Notification Class object instance number
  • confirmed bool - Indicates whether events sent to this device will be confirmed or unconfirmed

generateEvent(event_type, notification_class_object_instance)


Generate a mock event and report it via the specified Notification Class object instance

Params

  • event_type EventType - An enum indicating the type of event to generate
  • notification_class_object_instance number - The Notification Class object instance number

Enums

EventType


EventType is a global table, which contains the following BACnet event types:

EventType.CHANGE_OF_BITSTRING

EventType.CHANGE_OF_STATE

EventType.CHANGE_OF_VALUE

EventType.COMMAND_FAILURE

EventType.FLOATING_LIMIT

EventType.OUT_OF_RANGE

EventType.CHANGE_OF_LIFE_SAFETY

EventType.BUFFER_READY

EventType.UNSIGNED_RANGE

EventType.ACCESS_EVENT

EventType.DOUBLE_OUT_OF_RANGE

EventType.SIGNED_OUT_OF_RANGE

EventType.UNSIGNED_OUT_OF_RANGE

EventType.CHANGE_OF_CHARACTERSTRING

EventType.CHANGE_OF_TIMER