We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 979cc4a commit 67adb10Copy full SHA for 67adb10
XBee.h
@@ -887,6 +887,18 @@ class XBeeWithCallbacks : public XBee {
887
*/
888
void loop();
889
890
+ /**
891
+ * Sends a XBeeRequest (TX packet) out the serial port, and wait
892
+ * for a status response API frame (up until the given timeout).
893
+ * Essentially this just calls send() and waitForStatus().
894
+ * See waitForStatus for the meaning of the return value and
895
+ * more details.
896
+ */
897
+ uint8_t sendAndWait(XBeeRequest &request, uint16_t timeout) {
898
+ send(request);
899
+ return waitForStatus(request.getFrameId(), timeout);
900
+ }
901
+
902
/**
903
* Wait for a status API response with the given frameId and
904
* return the status from the packet (for ZB_TX_STATUS_RESPONSE,
0 commit comments