: bharatvaj/forwarder

1 
2 
3 
4 
5 
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 
28 
29 
30 
31 
32 
33 
34 
35 
36 
37 
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
#ifndef _ZIGBEE_H
#define _ZIGBEE_H "ZigBee"

#include <cstdlib>
#include <cstring>
#include <iostream>
#include <net/if.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <unistd.h>

#include <xbee/atcmd.h>
#include <xbee/device.h>
#include <xbee/sxa.h>
#include <xbee/wpan.h>

#include <network/Network.hpp>
#include <model/DeviceInfo.hpp>
#include <comm.h>

using namespace std;

namespace wa {
class ZigBee : public Network {
  int fd;

public:
  ZigBee() {}

  bool init() override {
    return false;
  }

  std::string getUserFriendlyName() override { return _ZIGBEE_H; }

  int listen(std::string networkParams) override {
    // deviceConnected(*this);
    return -1;
  }

  Device *connect(std::string conParams) { return nullptr; }

  // TODO
  std::vector<DeviceInfo> discover() override {
    std::vector<DeviceInfo> v;
    return v;
  }

  ~ZigBee() {
    // deinit
  }
};
} // namespace wa

#endif