Coverage Report

Created: 2021-08-28 18:14

D:\git\skunkworks\herald-for-cpp\herald\src\ble\ble_sensor_configuration.cpp
Line
Count
Source (jump to first uncovered line)
1
//  Copyright 2021 Herald Project Contributors
2
//  SPDX-License-Identifier: Apache-2.0
3
//
4
5
#include "herald/ble/ble_sensor_configuration.h"
6
7
namespace herald {
8
namespace ble {
9
10
BLESensorConfiguration::BLESensorConfiguration()
11
  : serviceUUID(UUID::fromString("428132af-4746-42d3-801e-4572d65bfd9b")),
12
    androidSignalCharacteristicUUID(UUID::fromString("f617b813-092e-437a-8324-e09a80821a11")),
13
    iosSignalCharacteristicUUID(UUID::fromString("0eb0d5f2-eae4-4a9a-8af3-a4adb02d4363")),
14
    payloadCharacteristicUUID(UUID::fromString("3e98c0f8-8f05-4829-a121-43e38f8933e7")),
15
    manufacturerIdForSensor(65530),
16
    manufacturerIdForApple(76),
17
    signalCharacteristicActionWritePayload(std::byte(1)),
18
    signalCharacteristicActionWriteRSSI(std::byte(2)),
19
    signalCharacteristicActionWritePayloadSharing(std::byte(3)),
20
    signalCharacteristicActionWriteImmediate(std::byte(4)),
21
    payloadDataUpdateTimeInterval(TimeInterval::never()),
22
    payloadSharingExpiryTimeInterval(TimeInterval::minutes(5)),
23
    advertRefreshTimeInterval(TimeInterval::minutes(15)),
24
    peripheralCleanInterval(TimeInterval::minutes(2)),
25
    maxBluetoothConnections(20),
26
    advertisingEnabled(true),
27
    scanningEnabled(true)
28
33
{
29
33
  ;
30
33
}
31
32
BLESensorConfiguration::BLESensorConfiguration(const BLESensorConfiguration& other)
33
  : serviceUUID(other.serviceUUID),
34
    androidSignalCharacteristicUUID(other.androidSignalCharacteristicUUID),
35
    iosSignalCharacteristicUUID(other.iosSignalCharacteristicUUID),
36
    payloadCharacteristicUUID(other.payloadCharacteristicUUID),
37
    manufacturerIdForSensor(other.manufacturerIdForSensor),
38
    manufacturerIdForApple(other.manufacturerIdForApple),
39
    signalCharacteristicActionWritePayload(other.signalCharacteristicActionWritePayload),
40
    signalCharacteristicActionWriteRSSI(other.signalCharacteristicActionWriteRSSI),
41
    signalCharacteristicActionWritePayloadSharing(other.signalCharacteristicActionWritePayloadSharing),
42
    signalCharacteristicActionWriteImmediate(other.signalCharacteristicActionWriteImmediate),
43
    payloadDataUpdateTimeInterval(other.payloadDataUpdateTimeInterval),
44
    payloadSharingExpiryTimeInterval(other.payloadSharingExpiryTimeInterval),
45
    advertRefreshTimeInterval(other.advertRefreshTimeInterval),
46
    peripheralCleanInterval(other.peripheralCleanInterval),
47
    maxBluetoothConnections(other.maxBluetoothConnections),
48
    advertisingEnabled(other.advertisingEnabled),
49
    scanningEnabled(other.scanningEnabled)
50
0
{
51
0
  ;
52
0
}
53
54
}
55
}