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: XBeeDM/XBeeDM.cpp
- Revision:
- 8:b5f4a0e92249
- Parent:
- 7:3ac2a461ce76
- Child:
- 9:780db84ce891
--- a/XBeeDM/XBeeDM.cpp Thu Jul 28 15:36:36 2016 +0200
+++ b/XBeeDM/XBeeDM.cpp Fri Jul 29 12:10:38 2016 +0200
@@ -102,6 +102,17 @@
return Success;
}
+RadioStatus XBeeDM::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;
+}
+
RadioStatus XBeeDM::get_node_discovery_timeout(uint16_t * const timeout_ms)
{
AtCmdFrame::AtCmdResp cmdresp;
@@ -125,25 +136,6 @@
return status;
}
-RadioStatus XBeeDM::set_network_security_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("NK", key, length);
- return cmdresp == AtCmdFrame::AtCmdRespOk ? Success : Failure;
-}
-
-RadioStatus XBeeDM::set_encryption_options(const uint8_t options)
-{
- AtCmdFrame::AtCmdResp cmdresp;
-
- cmdresp = set_param("EO", options);
- return cmdresp == AtCmdFrame::AtCmdRespOk ? Success : Failure;
-}
-
void XBeeDM::radio_status_update(AtCmdFrame::ModemStatus modem_status)
{
/* Update the radio status variables */
@@ -223,11 +215,6 @@
return RemoteXBeeDM(addr64);
}
-XBeeDM::AssocStatus XBeeDM::get_assoc_status(void)
-{
- return (AssocStatus)get_AI();
-}
-
void XBeeDM::register_node_discovery_cb(node_discovery_dm_cb_t function)
{
if (_nd_handler == NULL) {
