As the Network Port object is supported by Optic, similar to the default device object, you can now read the values of Network Port properties directly from the Folio. This functionality allows you to verify the values after setting them using the bacnetWriteNetworkPortProperty() query. Reading the values of the Network Port object's properties is crucial to ensure that the values are correctly set, as listed in the "properties supported" section.
Note: You can now also read the values of local device object properties. |
Example: bacnetReadPropertyFromDB (ObjectId, property, index)
Specify the object identifier as the first parameter, followed by the property. The index parameter is optional and is required only if the property is of type array and you want to retrieve it based on an index. By default, the index parameter is null.
Below are some examples:
bacnetReadPropertyFromDB("NP1", 75)
To read the Object-ID of the Network Port object (NP1). In this query, 75 corresponds to the Object-Identifier property.
bacnetReadPropertyFromDB("NP1", "BACnet-IP-Mode")
To determine if Optic is operating as a BBMD, FD, or in Normal mode.
bacnetReadPropertyFromDB("NP1", "BBMD_Broadcast_Distribution_Table")
To read which BBMD entries are present in the BDT.
bacnetReadPropertyFromDB(8:1, "object_list")
To read the Object-List of the Network Port Object.
Note: Executing the above query won't send any requests to other devices on the network. Instead, it will display the values saved in our local database on the UI. These values correspond to the properties of the Network Port Object or the Device Object, as only these two objects are supported locally for now. |