vghjvghi
Fork of XBeeLib3 by
Diff: XBee802/XBee802.h
- Revision:
- 6:06522f3a6642
- Parent:
- 4:629712865107
- Child:
- 8:b5f4a0e92249
--- a/XBee802/XBee802.h Thu Mar 31 11:39:30 2016 +0200 +++ b/XBee802/XBee802.h Thu Jul 28 10:17:20 2016 +0200 @@ -123,6 +123,15 @@ */ RadioStatus get_channel(uint8_t * const channel); + /** get_network_address - gets the 16bit network address of the device + * + * @param addr pointer where the device 16bit network address will be stored + * @returns + * Success if the operation was successful, + * Failure otherwise + */ + RadioStatus get_network_address(uint16_t * const addr); + /** set_network_address - sets the 16 bit network address of the device * * @param addr the device 16bit network address (0x0 - 0xFFFF) @@ -346,10 +355,6 @@ #endif protected: - inline bool is_PRO() - { - return (_hw_version & 0xFF00U) == 0x1800U; - } /** Frame handler used for the node discovery. Registered when a callback function * is registered */ @@ -378,6 +383,19 @@ /* Allow using XBee::send_data() methods from this class */ using XBee::send_data; + /** get_node_discovery_timeout - gets the node discovery timeout + * + * @param timeout_ms pointer where the node discovery timeout value will be stored + * @param wait_for_complete_timeout pointer where the function will store if the operator + * has to wait for the complete nd timeout after issuing + * a directed nd request + * @returns + * Success if the operation was successful, + * Failure otherwise + */ + virtual RadioStatus get_node_discovery_timeout(uint16_t * const timeout_ms); + virtual RadioStatus get_node_discovery_timeout(uint16_t * const timeout_ms, bool * const wait_for_complete_timeout); + private: };