tes

Dependencies:   ASyncTicker EthernetInterface WebSocketClient mbed-rtos mbed MbedJSONValue xbee_lib

Committer:
ammanvedi
Date:
Wed Jun 18 17:45:56 2014 +0000
Revision:
8:0d7ab8af0e59
Parent:
7:7039646b7083
x;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ammanvedi 5:80a7d03c94f5 1 #ifndef BT_DEVICE
ammanvedi 5:80a7d03c94f5 2 #define BT_DEVICE
ammanvedi 7:7039646b7083 3 #include "MbedJSONValue.h"
ammanvedi 5:80a7d03c94f5 4 #include <string>
ammanvedi 5:80a7d03c94f5 5 #include "xbee.h"
ammanvedi 5:80a7d03c94f5 6 #include "xbeeFrame.h"
ammanvedi 5:80a7d03c94f5 7
ammanvedi 5:80a7d03c94f5 8 class btNode {
ammanvedi 5:80a7d03c94f5 9 public:
ammanvedi 7:7039646b7083 10 btNode(int D_ID, std::string D_NAME, std::string H_ID);
ammanvedi 5:80a7d03c94f5 11 std::string SendMessage(std::string msg);
ammanvedi 6:c1bd3fadce09 12 int getID(){return ID;};
ammanvedi 7:7039646b7083 13 MbedJSONValue GetAsJSON();
ammanvedi 7:7039646b7083 14 std::string getName();
ammanvedi 7:7039646b7083 15 std::string getDisplayString();
ammanvedi 7:7039646b7083 16 void setName(std::string newname);
ammanvedi 5:80a7d03c94f5 17
ammanvedi 5:80a7d03c94f5 18 private:
ammanvedi 5:80a7d03c94f5 19 int ID;
ammanvedi 7:7039646b7083 20 std::string DisplayString;
ammanvedi 7:7039646b7083 21 std::string DeviceName;
ammanvedi 7:7039646b7083 22 std::string HubID;
ammanvedi 5:80a7d03c94f5 23 static const char ADDRESS[8];
ammanvedi 5:80a7d03c94f5 24 //const char dest_address[8] ={0x00, 0x13, 0xA2, 0x00, 0x40, 0x9B, 0x6D, 0xB0};
ammanvedi 5:80a7d03c94f5 25 };
ammanvedi 5:80a7d03c94f5 26
ammanvedi 5:80a7d03c94f5 27 #endif