Skip to main content

BacnetGateway

@totemsdk/edge-bacnet


@totemsdk/edge-bacnet / BacnetGateway

Interface: BacnetGateway

Properties​

status​

readonly status: "stopped" | "running" | "error"

Methods​

discoverDevices()​

discoverDevices(): Promise<EdgeOperationResult<{ devices: BacnetDevice[]; }>>

Discover devices on the network.

Returns​

Promise<EdgeOperationResult<{ devices: BacnetDevice[]; }>>


readProperty()​

readProperty(deviceId, objectType, objectInstance, propertyId): Promise<EdgeOperationResult<{ value: BacnetPropertyValue; }>>

Read a property from a remote device.

Parameters​

deviceId​

number

objectType​

string

objectInstance​

number

propertyId​

number

Returns​

Promise<EdgeOperationResult<{ value: BacnetPropertyValue; }>>


start()​

start(): Promise<void>

Returns​

Promise<void>


stop()​

stop(): Promise<void>

Returns​

Promise<void>


writeProperty()​

writeProperty(deviceId, objectType, objectInstance, propertyId, value, priority?): Promise<EdgeOperationResult<unknown>>

Write a property to a remote device.

Parameters​

deviceId​

number

objectType​

string

objectInstance​

number

propertyId​

number

value​

unknown

priority?​

number

Returns​

Promise<EdgeOperationResult<unknown>>