Hosted |
This class will trigger BACnetObjectChange event.
public sealed class HostedBACnetDevice : BACnetDevice, IDisposable
The HostedBACnetDevice type exposes the following members.
| Name | Description | |
|---|---|---|
| BACnetAnalogInputObjects | Collection of BACnet Analog Input objects of the device. | |
| BACnetAnalogValueObjects | Collection of BACnet Analog Value objects of the device. | |
| BACnetBinaryInputObjects | Collection of BACnet Binary Input objects of the device. | |
| BACnetBinaryValueObjects | Collection of BACnet Binary Value objects of the device. | |
| BACnetMultiStateInputObjects | Collection of BACnet MultiState Input objects of the device. | |
| BACnetMultiStateValueObjects | Collection of BACnet MultiState Value objects of the device. | |
| DeviceType |
Type of the BACnet device.
(Inherited from BACnetDevice) | |
| Disposed | Property to indicate if the Device has been disposed. | |
| Id |
A 22-bit decimal number that serves as an address of the device on the network and allows BACnet to unambiguously access it. The Id must be unique within the complete BACnet network.
(Inherited from BACnetDevice) | |
| Name | Device Name | |
| Parent |
The parent that this BACnetDevice object was added to.
(Inherited from BACnetDevice) | |
| PortNumber |
The UDP port number, set by the programmer, to be used by the BACnet device/protocol for directed messages and broadcasts.
(Inherited from BACnetDevice) | |
| UserSpecifiedObject |
Can be assigned anything that user wants.
(Inherited from BACnetDevice) | |
| WritePriority |
Write priority of the object.
(Inherited from BACnetDevice) |
| Name | Description | |
|---|---|---|
| AddObject(BACnetObject) |
Adds the specified host object to the corresponding host objects collection. This function also validates the object parameters passed.
Success will be returned if the object is added successfully, otherwise an exception is thrown that tells what kind of error found.
If response is not received from the BACnet stack for add request before the timeout occurs,
then a remove request will be sent to the BACnet stack to remove the object from the stack
and also the object will be deleted from the local collection. In this function Object Name is trimmed.
(Overrides BACnetDeviceAddObject(BACnetObject)) | |
| AddObject(BACnetObject, Int32) |
Adds the specified host object to the corresponding host objects collection, with user settable timeout option. This function also validates the object parameters passed.
Success will be returned if the object is added successfully, otherwise an exception is thrown that tells what kind of error found.
(Overrides BACnetDeviceAddObject(BACnetObject, Int32)) | |
| Dispose | Clean up of resources. | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetNumberOfObjects |
Method to get the number of objects added to this BACnet device.
(Inherited from BACnetDevice) | |
| GetNumberOfObjects(eBACnetObjectType) |
Method to get the number of objects added to this BACnet device of the specified object type.
(Inherited from BACnetDevice) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| RemoveAllObjects |
Removes all the host objects from all the host objects collections.
Success will be returned if all the objects are removed successfully, otherwise failure is returned and the corresponding error is logged.
(Overrides BACnetDeviceRemoveAllObjects) | |
| RemoveAllObjects(eBACnetObjectType) |
Removes all the host objects of the specified type from the corresponding host objects collections.
Success will be returned if all the objects of the specified type are removed successfully, otherwise failure is returned and the corresponding error is logged.
(Overrides BACnetDeviceRemoveAllObjects(eBACnetObjectType)) | |
| RemoveAllObjects(Int32) |
Removes all the host objects from all the host objects collections, with user settable timeout option.
Success will be returned if all the object are removed successfully, otherwise failure is returned and the corresponding error is logged.
(Overrides BACnetDeviceRemoveAllObjects(Int32)) | |
| RemoveAllObjects(eBACnetObjectType, Int32) |
Removes all the host objects of the specified type from the corresponding host objects collections.
Success will be returned if all the objects of the specified type are removed successfully, otherwise failure is returned and the corresponding error is logged.
(Overrides BACnetDeviceRemoveAllObjects(eBACnetObjectType, Int32)) | |
| RemoveObject(BACnetObject) |
Removes the specified host object from the corresponding host objects collection.
Success will be returned if the object is removed successfully, otherwise an exception is thrown that tells what kind of error found.
(Overrides BACnetDeviceRemoveObject(BACnetObject)) | |
| RemoveObject(BACnetObject, Int32) |
Removes the specified host object from the corresponding host objects collection, with user settable timeout option. This function also validates the object parameters passed.
Success will be returned if the object is removed successfully, otherwise an exception is thrown that tells what kind of error found.
(Overrides BACnetDeviceRemoveObject(BACnetObject, Int32)) | |
| ToString |
String representation of the HostedBACnetDevice.
(Overrides ObjectToString) |
| Name | Description | |
|---|---|---|
| BACnetBaseEvent |
Event triggered when a feedback has changed for this BACnetDevice.
(Inherited from BACnetDevice) |
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The BACnet remote device id passed is not valid. |
| BACnetException | Unable to remove the BACnet remote device due to no response or error in the response packet received from the BACnet stack. |
| BACnetDeviceOrObjectDoesNotExistException | BACnet remote device with the specified device id does not exist in the system. |