~thomas-voss/location-service/refactor-location-position

« back to all changes in this revision

Viewing changes to 3rd-party/ichnaea/include/ichnaea/bluetooth_beacon.h

  • Committer: Thomas Voß
  • Date: 2016-08-14 19:36:05 UTC
  • Revision ID: thomas.voss@canonical.com-20160814193605-e6c0xitja9yncmw8
Add back mls provider relying on Mozilla's location service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (C) 2016 Canonical Ltd.
 
2
// 
 
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.
 
7
// 
 
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.
 
12
// 
 
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_
 
17
 
 
18
#include <chrono>
 
19
#include <string>
 
20
 
 
21
namespace ichnaea
 
22
{
 
23
/// @brief BluetoothBeacon models a visible bluetooth le device.
 
24
struct BluetoothBeacon
 
25
{
 
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.
 
30
};
 
31
}
 
32
 
 
33
#endif // ICHNAEA_BLUETOOTH_BEACON_H_