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: XBeeZB/XBeeZB.cpp
- Revision:
- 8:b5f4a0e92249
- Parent:
- 6:06522f3a6642
- Child:
- 9:780db84ce891
diff -r 3ac2a461ce76 -r b5f4a0e92249 XBeeZB/XBeeZB.cpp
--- a/XBeeZB/XBeeZB.cpp Thu Jul 28 15:36:36 2016 +0200
+++ b/XBeeZB/XBeeZB.cpp Fri Jul 29 12:10:38 2016 +0200
@@ -261,6 +261,17 @@
return cmdresp == AtCmdFrame::AtCmdRespOk ? Success : Failure;
}
+RadioStatus XBeeZB::set_tc_link_key(const uint8_t * const key, const uint16_t length)
+{
+ if (key == NULL || length == 0 || length > 16) {
+ return Failure;
+ }
+ AtCmdFrame::AtCmdResp cmdresp;
+
+ cmdresp = set_param("KY", key, length);
+ return cmdresp == AtCmdFrame::AtCmdRespOk ? Success : Failure;
+}
+
void XBeeZB::radio_status_update(AtCmdFrame::ModemStatus modem_status)
{
/* Update the radio status variables */
