File Information
Library: IoT/XBee
Package: Generated
Header: IoT/XBee/IXBeeNode.h
Description
This class provides a high-level interface to a Digi XBee device using the Digi XBee API frame-based protocol. This class can be used with all XBee devices supporting the XBee API frame-based protocol, including ZigBee devices. Actually supported methods and events are depending on the kind of XBee device, e.g., an 802.15.4 module won't support ZigBee-specific API frames, and vice-versa. Please refer to the XBee product manual for detailed information about the API.
Inheritance
Direct Base Classes: Poco::OSP::Service
All Base Classes: Poco::OSP::Service, Poco::RefCountedObject
Known Derived Classes: XBeeNodeRemoteObject
Member Summary
Member Functions: isA, queueCommand, remoting__enableEvents, remoting__typeId, sendCommand, sendExplicitAddressingZigBeeTransmitRequest, sendFrame, sendRemoteCommand, sendTransmitRequest, sendZigBeeTransmitRequest, type
Inherited Functions: duplicate, isA, referenceCount, release, type
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < IXBeeNode >;
Constructors
IXBeeNode
IXBeeNode();
Creates a IXBeeNode.
Destructor
~IXBeeNode
virtual ~IXBeeNode();
Destroys the IXBeeNode.
Member Functions
isA
bool isA(
const std::type_info & otherType
) const;
Returns true if the class is a subclass of the class given by otherType.
See also: Poco::OSP::Service::isA()
queueCommand
virtual void queueCommand(
const IoT::XBee::ATCommand & command
) = 0;
Queues an AT command for execution on the connected XBee device.
In contrast to sendCommand(), new parameter values are queued and not applied until either sendCommand() is called or the Apply Changes (AC) AT command is issued. Register queries (reading parameter values) are returned immediately.
remoting__enableEvents
virtual std::string remoting__enableEvents(
Poco::RemotingNG::Listener::Ptr pListener,
bool enable = bool (true)
) = 0;
Enable or disable delivery of remote events.
The given Listener instance must implement the Poco::RemotingNG::EventListener interface, otherwise this method will fail with a RemotingException.
This method is only used with Proxy objects; calling this method on a RemoteObject will do nothing.
remoting__typeId
static const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId();
Returns the TypeId of the class.
sendCommand
virtual void sendCommand(
const IoT::XBee::ATCommand & command
) = 0;
Sends an AT command to the connected XBee device.
sendExplicitAddressingZigBeeTransmitRequest
virtual void sendExplicitAddressingZigBeeTransmitRequest(
const IoT::XBee::ExplicitAddressingZigBeeTransmitRequest & request
) = 0;
Sends an ExplicitAddressingZigBeeTransmitRequest to the XBee device.
sendFrame
virtual void sendFrame(
const IoT::XBee::APIFrame & frame
) = 0;
Sends an API frame to the connected XBee device.
The caller is responsible for correct formatting of the API frame's data. Refer to the XBee module documentation for supported frames and their format.
This can be used to send API frames not directly supported by the XBeeNode interface.
sendRemoteCommand
virtual void sendRemoteCommand(
const IoT::XBee::RemoteATCommand & command
) = 0;
Sends an AT command to a remote XBee device.
sendTransmitRequest
virtual void sendTransmitRequest(
const IoT::XBee::TransmitRequest & request
) = 0;
Sends a TransmitRequest message to the XBee device.
sendZigBeeTransmitRequest
virtual void sendZigBeeTransmitRequest(
const IoT::XBee::ZigBeeTransmitRequest & request
) = 0;
Sends a ZigBeeTransmitRequest to the XBee device.
type
const std::type_info & type() const;
Returns the type information for the object's class.
See also: Poco::OSP::Service::type()
Variables
commandResponseReceived
Poco::BasicEvent < const IoT::XBee::ATCommandResponse > commandResponseReceived;
explicitAddressingZigBeePacketReceived
Poco::BasicEvent < const IoT::XBee::ExplicitAddressingZigBeeReceivePacket > explicitAddressingZigBeePacketReceived;
frameReceived
Poco::BasicEvent < const IoT::XBee::APIFrame > frameReceived;
ioDataReceived
Poco::BasicEvent < const IoT::XBee::ReceivePacket > ioDataReceived;
ioSampleReceived
Poco::BasicEvent < const IoT::XBee::IOSample > ioSampleReceived;
modemStatusReceived
Poco::BasicEvent < const IoT::XBee::ModemStatus > modemStatusReceived;
packetReceived
Poco::BasicEvent < const IoT::XBee::ReceivePacket > packetReceived;
remoteCommandResponseReceived
Poco::BasicEvent < const IoT::XBee::RemoteATCommandResponse > remoteCommandResponseReceived;
sensorReadReceived
Poco::BasicEvent < const IoT::XBee::SensorRead > sensorReadReceived;
transmitStatusReceived
Poco::BasicEvent < const IoT::XBee::TransmitStatus > transmitStatusReceived;
zigBeePacketReceived
Poco::BasicEvent < const IoT::XBee::ZigBeeReceivePacket > zigBeePacketReceived;
zigBeeTransmitStatusReceived
Poco::BasicEvent < const IoT::XBee::ZigBeeTransmitStatus > zigBeeTransmitStatusReceived;