1
// Copyright (C) 2016 Canonical Ltd.
3
// This library is free software: you can redistribute it and/or modify
4
// it under the terms of the GNU Lesser General Public License as published
5
// by the Free Software Foundation, either version 3 of the License, or
6
// (at your option) any later version.
8
// This program is distributed in the hope that it will be useful,
9
// but WITHOUT ANY WARRANTY; without even the implied warranty of
10
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
// GNU General Public License for more details.
13
// You should have received a copy of the GNU Lesser General Public License
14
// along with this program. If not, see <http://www.gnu.org/licenses/>.
15
#ifndef ICHNAEA_BLUETOOTH_BEACON_H_
16
#define ICHNAEA_BLUETOOTH_BEACON_H_
23
/// @brief BluetoothBeacon models a visible bluetooth le device.
24
struct BluetoothBeacon
26
std::string mac_address; ///< The address of the Bluetooth Low Energy (BLE) beacon.
27
std::string name; ///< The name of the BLE beacon.
28
std::chrono::milliseconds age; ///< The number of milliseconds since this BLE beacon was last seen.
29
double signal_strength; ///< The measured signal strength of the BLE beacon in dBm.
33
#endif // ICHNAEA_BLUETOOTH_BEACON_H_