6 #include <Poco/Mutex.h>
8 #include "bluetooth/HciInterface.h"
9 #include "util/Loggable.h"
17 void up()
const override;
18 void reset()
const override;
20 std::map<MACAddress, std::string>
scan()
const override;
21 std::map<MACAddress, std::string>
lescan(
22 const Poco::Timespan &seconds)
const override;
26 const Poco::Timespan& timeout)
const override;
29 Poco::SharedPtr<WatchCallback> callBack)
override;
37 static std::string
parseLEName(uint8_t *eir,
size_t length);
44 int hciSocket()
const;
51 int findHci(
const std::string &name)
const;
59 int findHci(
int sock,
const std::string &name)
const;
66 bool processNextEvent(
const int &fd, std::map<MACAddress, std::string> &devices)
const;
76 std::map<MACAddress, std::string> listLE(
77 const int sock,
const Poco::Timespan &seconds)
const;
85 HciInterface::Ptr lookup(
const std::string &name)
override;
Definition: HciInterface.h:87
std::map< MACAddress, std::string > scan() const override
Definition: BluezHciInterface.cpp:225
HciInfo info() const override
Definition: BluezHciInterface.cpp:279
bool detect(const MACAddress &address) const override
Definition: BluezHciInterface.cpp:192
Definition: BluezHciInterface.h:83
Definition: MACAddress.h:8
void unwatch(const MACAddress &address) override
Definition: BluezHciInterface.cpp:299
static std::string parseLEName(uint8_t *eir, size_t length)
Definition: BluezHciInterface.cpp:304
std::map< MACAddress, std::string > lescan(const Poco::Timespan &seconds) const override
Definition: BluezHciInterface.cpp:441
void up() const override
Definition: BluezHciInterface.cpp:164
HciConnection::Ptr connect(const MACAddress &address, const Poco::Timespan &timeout) const override
Definition: BluezHciInterface.cpp:285
void watch(const MACAddress &address, Poco::SharedPtr< WatchCallback > callBack) override
Definition: BluezHciInterface.cpp:292
Definition: Loggable.h:19
void reset() const override
Definition: BluezHciInterface.cpp:180
Definition: BluezHciInterface.h:13
Definition: HciInterface.h:16