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.h
- Revision:
- 0:633baa9653b0
- Child:
- 2:33462c1e9f45
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Xbee.h Sun Nov 22 01:04:30 2015 +0000
@@ -0,0 +1,18 @@
+#pragma once
+#include "mbed.h"
+
+class Xbee
+{
+public:
+ // Use p9 and p10 as default serial pins
+ Xbee(PinName tx = p9, PinName rx = p10):_xbee(tx,rx){}
+
+ // Send buffer
+ void Send(const char*);
+
+ // Read buffer
+ void Recv(char*,const size_t&);
+
+private:
+ Serial _xbee;
+};
\ No newline at end of file