herald
2.0.0
|
Defines BLE sensor configuration data, e.g. service and characteristic UUIDs. More...
#include <ble_sensor_configuration.h>
Public Member Functions | |
BLESensorConfiguration (const BLESensorConfiguration &other) | |
Public Attributes | |
UUID | serviceUUID |
UUID | androidSignalCharacteristicUUID |
UUID | iosSignalCharacteristicUUID |
UUID | payloadCharacteristicUUID |
int | manufacturerIdForSensor |
int | manufacturerIdForApple |
BLE advert manufacturer ID for Apple, for scanning of background iOS devices. | |
std::byte | signalCharacteristicActionWritePayload |
Signal characteristic action code for write payload, expect 1 byte action code followed by 2 byte little-endian Int16 integer value for payload data length, then payload data. | |
std::byte | signalCharacteristicActionWriteRSSI |
Signal characteristic action code for write RSSI, expect 1 byte action code followed by 4 byte little-endian Int32 integer value for RSSI value. | |
std::byte | signalCharacteristicActionWritePayloadSharing |
Signal characteristic action code for write payload, expect 1 byte action code followed by 2 byte little-endian Int16 integer value for payload sharing data length, then payload sharing data. | |
std::byte | signalCharacteristicActionWriteImmediate |
Arbitrary immediate write. | |
TimeInterval | payloadDataUpdateTimeInterval |
Log level for BLESensor. More... | |
TimeInterval | payloadSharingExpiryTimeInterval |
Expiry time for shared payloads, to ensure only recently seen payloads are shared. | |
TimeInterval | advertRefreshTimeInterval |
Advert refresh time interval. | |
TimeInterval | peripheralCleanInterval |
int | maxBluetoothConnections |
bool | advertisingEnabled |
bool | scanningEnabled |
Defines BLE sensor configuration data, e.g. service and characteristic UUIDs.
UUID herald::ble::BLESensorConfiguration::androidSignalCharacteristicUUID |
Signaling characteristic for controlling connection between peripheral and central, e.g. keep each other from suspend state
UUID herald::ble::BLESensorConfiguration::iosSignalCharacteristicUUID |
Signaling characteristic for controlling connection between peripheral and central, e.g. keep each other from suspend state
int herald::ble::BLESensorConfiguration::manufacturerIdForSensor |
Manufacturer data is being used on Android to store pseudo device address
int herald::ble::BLESensorConfiguration::maxBluetoothConnections |
Connection management Max connections - since v1.2 (allowing multiple connections on Android and C++)
UUID herald::ble::BLESensorConfiguration::payloadCharacteristicUUID |
Primary payload characteristic (read) for distributing payload data from peripheral to central, e.g. identity data
TimeInterval herald::ble::BLESensorConfiguration::payloadDataUpdateTimeInterval |
Log level for BLESensor.
Payload update at regular intervals, in addition to default HERALD communication process.
TimeInterval herald::ble::BLESensorConfiguration::peripheralCleanInterval |
Remove peripheral records that haven't been updated for some time.
UUID herald::ble::BLESensorConfiguration::serviceUUID |
Service UUID for beacon service. This is a fixed UUID to enable iOS devices to find each other even in background mode. Android devices will need to find Apple devices first using the manufacturer code then discover services to identify actual beacons.