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: CircularBuffer FixedLengthList
Dependents: XBeeApiTest XBeeApiSimpleATCmdsExample XBeeApiBroadcastExample XBeeApiBroadcastExampleRTOS ... more
Diff: Utility/XBeeApiSetupHelper.cpp
- Revision:
- 5:b40a6fd3a334
- Child:
- 6:3cb62daace78
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Utility/XBeeApiSetupHelper.cpp Wed Jan 29 20:19:59 2014 +0000
@@ -0,0 +1,35 @@
+/**
+
+Copyright 2014 John Bailey
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+*/
+
+#include "XBeeApiSetupHelper.hpp"
+
+XBeeDevice::XBeeDeviceReturn_t xbeeSetNetworkType( XBeeApiCmdAt* const p_xbeeCmd,
+ const XBeeNetworkType_e p_type,
+ const XBeeApiCmdAt::panId_t p_id,
+ const XBeeApiCmdAt::channel_t p_chan )
+{
+ XBeeDevice::XBeeDeviceReturn_t ret_val = XBeeDevice::XBEEDEVICE_OK;
+
+ p_xbeeCmd->setCoordinatorEnable( false );
+ p_xbeeCmd->disableEndDeviceAssociation();
+ p_xbeeCmd->setChannel( p_chan );
+ p_xbeeCmd->setPanId( p_id );
+
+ return ret_val;
+}
+