Library to easily communicate with XBee modules.
Fork of XBeeLib by
Diff: XBeeZB/XBeeZB.h
- Revision:
- 8:b5f4a0e92249
- Parent:
- 6:06522f3a6642
- Child:
- 9:780db84ce891
--- a/XBeeZB/XBeeZB.h Thu Jul 28 15:36:36 2016 +0200 +++ b/XBeeZB/XBeeZB.h Fri Jul 29 12:10:38 2016 +0200 @@ -211,6 +211,16 @@ */ RadioStatus set_encryption_options(const uint8_t options); + /** set_tc_link_key - Sets key used for encryption and decryption (ZigBee trust center link key). + * It is not recommended to set the key programmatically, because it could be read through the raw serial port bits. + * @param key pointer to the 128-bit AES key + * @param length size of the buffer pointed by 'key' + * @returns + * Success if the operation was successful, + * Failure otherwise + */ + RadioStatus set_tc_link_key(const uint8_t * const key, const uint16_t length); + /** register_node_discovery_cb - registers the callback function that will be called * when the responses to the node discovery command arrive *