tes

Dependencies:   ASyncTicker EthernetInterface WebSocketClient mbed-rtos mbed MbedJSONValue xbee_lib

btNode.h

Committer:
ammanvedi
Date:
2014-06-18
Revision:
8:0d7ab8af0e59
Parent:
7:7039646b7083

File content as of revision 8:0d7ab8af0e59:

#ifndef BT_DEVICE
#define BT_DEVICE
#include "MbedJSONValue.h"
#include <string>
#include "xbee.h"
#include "xbeeFrame.h"
 
class btNode {
public:
    btNode(int D_ID, std::string D_NAME, std::string H_ID);
    std::string SendMessage(std::string msg);
    int getID(){return ID;};
    MbedJSONValue GetAsJSON();
    std::string getName();
    std::string getDisplayString();
    void setName(std::string newname);
  
private:  
    int ID;
    std::string DisplayString;
    std::string DeviceName;
    std::string HubID;
    static const char ADDRESS[8];
    //const char dest_address[8] ={0x00, 0x13, 0xA2, 0x00, 0x40, 0x9B, 0x6D, 0xB0};
};
 
#endif