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.
Diff: Xbee.cpp
- Revision:
- 2:33462c1e9f45
- Parent:
- 1:e44c66cd2de6
- Child:
- 3:fe623a260bf5
--- a/Xbee.cpp Sun Nov 22 01:11:42 2015 +0000
+++ b/Xbee.cpp Sun Nov 22 01:24:23 2015 +0000
@@ -1,6 +1,15 @@
#pragma once
#include "Xbee.h"
+Xbee::Xbee(PinName tx, PinName rx , PinName rst):_xbee(tx,rx),_rst(rst)
+{
+ _rst = 0;
+ wait(0.01);
+ _rst = 1;
+ wait(0.01);
+}
+
+
void Xbee::Send(const char* buffer)
{
_xbee.puts(buffer);