Class DigiPointDevice
This class represents a local Poit-to-multipoint device.
Inherited Members
Namespace: XBeeLibrary.Core
Assembly: XBeeLibrary.Core.dll
Syntax
public class DigiPointDevice : XBeeDevice
Constructors
DigiPointDevice(IConnectionInterface)
Class constructor. Instantiates a new DigiPointDevice object with the given connection interface.
Declaration
public DigiPointDevice(IConnectionInterface connectionInterface)
Parameters
Type | Name | Description |
---|---|---|
IConnectionInterface | connectionInterface | The connection interface with the physical point-to-multipoint device. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
See Also
Properties
APIOutputMode
The API output mode of the XBee device.
Declaration
public APIOutputMode APIOutputMode { get; set; }
Property Value
Type | Description |
---|---|
APIOutputMode |
Remarks
The API output mode determines the format that the received data is output through the serial interface of the XBee device.
Exceptions
Type | Condition |
---|---|
ATCommandEmptyException | If the returned value of the API Output Mode command
is |
See Also
XBeeProtocol
The protocol of the XBee device.
Declaration
public override XBeeProtocol XBeeProtocol { get; }
Property Value
Type | Description |
---|---|
XBeeProtocol |
Overrides
See Also
Methods
GetNetwork()
Returns the network associated with this XBee device.
Declaration
public override XBeeNetwork GetNetwork()
Returns
Type | Description |
---|---|
XBeeNetwork | The XBee network of the device. |
Overrides
Exceptions
Type | Condition |
---|---|
InterfaceNotOpenException | If this device connection is not open. |
See Also
Open()
Opens the connection interface associated with this XBee device.
Declaration
public override void Open()
Overrides
Remarks
When opening the device an information reading process is automatically performed. This includes:
Exceptions
Type | Condition |
---|---|
InterfaceAlreadyOpenException | If this device connection is already open. |
InvalidOperatingModeException | |
BluetoothAuthenticationException | If the BLE authentication process fails. |
TimeoutException | If the timeout to read settings when initializing the device elapses without response. |
XBeeException | If there is any problem opening this device connection. |
See Also
ReadExplicitData()
Reads new explicit data received by this XBee device during the configured receive timeout.
Declaration
public ExplicitXBeeMessage ReadExplicitData()
Returns
Type | Description |
---|---|
ExplicitXBeeMessage | An ExplicitXBeeMessage object containing the explicit data, the source
address of the remote node that sent the data and other values related to the transmission.
|
Remarks
This method blocks until new explicit data is received or the configured receive timeout expires.
For non-blocking operations, register an event handler to ExplicitDataReceived.
Exceptions
Type | Condition |
---|---|
InterfaceNotOpenException | If the interface is not open. |
See Also
ReadExplicitData(Int32)
Reads new explicit data received by this XBee device during the configured receive timeout.
Declaration
public ExplicitXBeeMessage ReadExplicitData(int timeout)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | timeout | The time to wait for new explicit data in milliseconds. |
Returns
Type | Description |
---|---|
ExplicitXBeeMessage | An ExplicitXBeeMessage object containing the explicit data, the source
address of the remote node that sent the data and other values related to the transmission.
|
Remarks
This method blocks until new explicit data is received or the configured receive timeout expires.
For non-blocking operations, register an event handler to ExplicitDataReceived.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If |
InterfaceNotOpenException | If the interface is not open. |
See Also
ReadExplicitDataFrom(RemoteXBeeDevice)
Reads new explicit data received from the given remote XBee device during the configured receive timeout.
Declaration
public ExplicitXBeeMessage ReadExplicitDataFrom(RemoteXBeeDevice remoteXBeeDevice)
Parameters
Type | Name | Description |
---|---|---|
RemoteXBeeDevice | remoteXBeeDevice | The remote device to read explicit data from. |
Returns
Type | Description |
---|---|
ExplicitXBeeMessage | An ExplicitXBeeMessage object containing the explicit data, the source
address of the remote node that sent the data and other values related to the transmission.
|
Remarks
This method blocks until new explicit data from the provided remote XBee device is received or the configured receive timeout expires.
For non-blocking operations, register an event handler to ExplicitDataReceived.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
InterfaceNotOpenException | If the interface is not open. |
See Also
ReadExplicitDataFrom(RemoteXBeeDevice, Int32)
Reads new explicit data received from the given remote XBee device during the provided timeout.
Declaration
public ExplicitXBeeMessage ReadExplicitDataFrom(RemoteXBeeDevice remoteXBeeDevice, int timeout)
Parameters
Type | Name | Description |
---|---|---|
RemoteXBeeDevice | remoteXBeeDevice | The remote device to read explicit data from. |
System.Int32 | timeout | The time to wait for new explicit data in milliseconds. |
Returns
Type | Description |
---|---|
ExplicitXBeeMessage | An ExplicitXBeeMessage object containing the explicit data, the source address
of the remote node that sent the data and other values related to the transmission.
|
Remarks
This method blocks until new explicit data from the provided remote XBee device is received or the given timeout expires.
For non-blocking operations, register an event handler to ExplicitDataReceived.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | If |
System.ArgumentNullException | If |
InterfaceNotOpenException | If the interface is not open. |
See Also
SendBroadcastExplicitData(Byte, Byte, Byte[], Byte[], Byte[])
Sends the provided data to all the XBee nodes of the network (broadcast) in application layer mode. Application layer mode means that you need to specify the application layer fields to be sent with the data.
Declaration
public void SendBroadcastExplicitData(byte sourceEndpoint, byte destEndpoint, byte[] clusterID, byte[] profileID, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | sourceEndpoint | Source endpoint for the transmission. |
System.Byte | destEndpoint | Destination endpoint for the transmission. |
System.Byte[] | clusterID | Cluster ID used in the transmission. |
System.Byte[] | profileID | Profile ID used in the transmission. |
System.Byte[] | data | Byte array containing the data to be sent. |
Remarks
This method blocks till a success or error response arrives or the configured receive timeout expires.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If |
InterfaceNotOpenException | If the interface is not open. |
TimeoutException | If there is a timeout sending the given packet synchronously. |
TransmitException | If the transmit status generated when sending the packet is not an instance of TransmitStatusPacket or if it is not an instance of TXStatusPacket or if when it is correct, its status is different from SUCCESS. |
XBeeException | If there is any other XBee related error. |
See Also
SendExplicitData(XBee64BitAddress, Byte, Byte, Byte[], Byte[], Byte[])
Sends the provided data in application layer mode to the XBee device of the network corresponding to the given 64-bit address. Application layer mode means that you need to specify the application layer fields to be sent with the data.
Declaration
public void SendExplicitData(XBee64BitAddress address, byte sourceEndpoint, byte destEndpoint, byte[] clusterID, byte[] profileID, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
XBee64BitAddress | address | The 64-bit address of the XBee that will receive the data. |
System.Byte | sourceEndpoint | Source endpoint for the transmission. |
System.Byte | destEndpoint | Destination endpoint for the transmission. |
System.Byte[] | clusterID | Cluster ID used in the transmission. |
System.Byte[] | profileID | Profile ID used in the transmission. |
System.Byte[] | data | Byte array containing the data to be sent. |
Remarks
This method blocks till a success or error response arrives or the configured receive timeout expires.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If |
InterfaceNotOpenException | If the interface is not open. |
OperationNotSupportedException | If the sender device is remote. |
TimeoutException | If there is a timeout sending the given packet synchronously. |
TransmitException | If the transmit status generated when sending the packet is not an instance of TransmitStatusPacket or if it is not an instance of TXStatusPacket or if when it is correct, its status is different from SUCCESS. |
XBeeException | If there is any other XBee related error. |
See Also
SendExplicitData(RemoteXBeeDevice, Byte, Byte, Byte[], Byte[], Byte[])
Sends the provided data in application layer mode to the provided XBee device choosing the optimal send method depending on the protocol of the local XBee device. Application layer mode means that you need to specify the application layer fields to be sent with the data.
Declaration
public void SendExplicitData(RemoteXBeeDevice remoteXBeeDevice, byte sourceEndpoint, byte destEndpoint, byte[] clusterID, byte[] profileID, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
RemoteXBeeDevice | remoteXBeeDevice | The XBee device of the network that will receive the data. |
System.Byte | sourceEndpoint | Source endpoint for the transmission. |
System.Byte | destEndpoint | Destination endpoint for the transmission. |
System.Byte[] | clusterID | Cluster ID used in the transmission. |
System.Byte[] | profileID | Profile ID used in the transmission. |
System.Byte[] | data | Byte array containing the data to be sent. |
Remarks
This method blocks till a success or error response arrives or the configured receive timeout expires.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If |
InterfaceNotOpenException | If the interface is not open. |
TimeoutException | If there is a timeout sending the given packet synchronously. |
TransmitException | If the transmit status generated when sending the packet is not an instance of TransmitStatusPacket or if it is not an instance of TXStatusPacket or if when it is correct, its status is different from SUCCESS. |
XBeeException | If there is any other XBee related error. |
See Also
SendExplicitDataAsync(XBee64BitAddress, Byte, Byte, Byte[], Byte[], Byte[])
Sends asynchronously the provided data in application layer mode to the XBee device of the network corresponding to the given 64-bit address. Application layer mode means that you need to specify the application layer fields to be sent with the data.
Declaration
public void SendExplicitDataAsync(XBee64BitAddress address, byte sourceEndpoint, byte destEndpoint, byte[] clusterID, byte[] profileID, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
XBee64BitAddress | address | The 64-bit address of the XBee that will receive the data. |
System.Byte | sourceEndpoint | Source endpoint for the transmission. |
System.Byte | destEndpoint | Destination endpoint for the transmission. |
System.Byte[] | clusterID | Cluster ID used in the transmission. |
System.Byte[] | profileID | Profile ID used in the transmission. |
System.Byte[] | data | Byte array containing the data to be sent. |
Remarks
Asynchronous transmissions do not wait for answer from the remote device or for transmit status packet.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If |
InterfaceNotOpenException | If the interface is not open. |
OperationNotSupportedException | If the sender device is remote. |
See Also
SendExplicitDataAsync(RemoteXBeeDevice, Byte, Byte, Byte[], Byte[], Byte[])
Sends asynchronously the provided data in application layer mode to the provided XBee device choosing the optimal send method depending on the protocol of the local XBee device. Application layer mode means that you need to specify the application layer fields to be sent with the data.
Declaration
public void SendExplicitDataAsync(RemoteXBeeDevice remoteXBeeDevice, byte sourceEndpoint, byte destEndpoint, byte[] clusterID, byte[] profileID, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
RemoteXBeeDevice | remoteXBeeDevice | The XBee device of the network that will receive the data. |
System.Byte | sourceEndpoint | Source endpoint for the transmission. |
System.Byte | destEndpoint | Destination endpoint for the transmission. |
System.Byte[] | clusterID | Cluster ID used in the transmission. |
System.Byte[] | profileID | Profile ID used in the transmission. |
System.Byte[] | data | Byte array containing the data to be sent. |
Remarks
Asynchronous transmissions do not wait for answer from the remote device or for transmit status packet.
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If |
System.ArgumentException | If |
InterfaceNotOpenException | If the interface is not open. |
OperationNotSupportedException | If the sender device is remote. |
See Also
Events
ExplicitDataReceived
Represents the method that will handle the explicit data received event.
Declaration
public event EventHandler<ExplicitDataReceivedEventArgs> ExplicitDataReceived
Event Type
Type | Description |
---|---|
System.EventHandler<ExplicitDataReceivedEventArgs> |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | If the event handler is |