Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DigiLogger
Fork of XBeeLib_vs by
Diff: XBee802/XBee802.h
- Revision:
- 2:2ee1b6d51df2
- Parent:
- 1:794d1d3e4a08
- Child:
- 3:8662ebe83570
diff -r 794d1d3e4a08 -r 2ee1b6d51df2 XBee802/XBee802.h
--- a/XBee802/XBee802.h Mon May 11 17:58:00 2015 +0200
+++ b/XBee802/XBee802.h Thu May 14 16:21:39 2015 +0200
@@ -153,29 +153,24 @@
*/
virtual TxStatus send_data(const RemoteXBee& remote, const uint8_t *const data, uint16_t len);
- /** send_data - sends data to a remote device waiting for the packet
- * answer with the result of the operation
+ /** send_data_asyncr - sends data to a remote device not waiting for the packet answer
*
- * @param remote64 64bit address of the remote device
+ * @param remote remote device
* @param data pointer to the data that will be sent
* @param len number of bytes that will be transmitted
* @returns the result of the data transfer
* TxStatusSuccess if the operation was successful,
* the error code otherwise
*/
- TxStatus send_data(uint64_t remote64, const uint8_t *const data, uint16_t len);
+ TxStatus send_data_asyncr(const RemoteXBee& remote, const uint8_t *const data, uint16_t len);
- /** send_data - sends data to a remote device waiting for the packet
- * answer with the result of the operation
+ /** get_remote_node_by_id - searches for a device in the network with the specified Node Identifier.
*
- * @param addr16 16bit address of the remote device
- * @param data pointer to the data that will be sent
- * @param len number of bytes that will be transmitted
- * @returns the result of the data transfer
- * TxStatusSuccess if the operation was successful,
- * the error code otherwise
+ * @param node_id node id of the device we are looking for
+ * @returns a RemoteXBee802 with the 16-bit and 64-bit address of the remote device whose node id matches with the parameter.
+ * If node is not found, the returned object will have invalid addresses (RemoteXBee802::is_valid() will return false).
*/
- TxStatus send_data(uint16_t addr16, const uint8_t *const data, uint16_t len);
+ RemoteXBee802 get_remote_node_by_id(const char * const node_id);
/* Allow using XBee::set_param() methods for local radio from this class */
using XBee::set_param;
