File Information
Library: IoT/XBee
Package: XBee
Header: IoT/XBee/XBeePort.h
Description
Member Summary
Member Functions: poll, receiveFrame, sendFrame
Constructors
XBeePort
XBeePort(
Poco::SharedPtr < Poco::Serial::SerialPort > pSerialPort
);
Destructor
~XBeePort
~XBeePort();
Destroys the ZBPort.
Member Functions
poll
bool poll(
const Poco::Timespan & timeout
);
Waits for data to arrive at the port.
Returns true immediately if data is already in the internal buffer, or if data arrives during the specified time interval, otherwise false.
receiveFrame
std::size_t receiveFrame(
XBeeFrame & frame
);
Receives an API frame from the XBee ZB module.
Blocks until data becomes available.
receiveFrame
std::size_t receiveFrame(
XBeeFrame & frame,
const Poco::Timespan & timeout
);
Receives an API frame from the XBee ZB module.
Returns the number of bytes received, which may be 0 if the receive operation times out.
sendFrame
void sendFrame(
const XBeeFrame & frame
);
Sends an API frame to the XBee ZB module.