38 255, 255, 255, 255, 47, 255, 255, 255, 255, 111, 71, 10, 255, 115, 255, 255, 91, 90, 37, 85,
39 126, 74, 69, 57, 56, 50, 46, 44, 40, 38, 36, 35, 80, 51, 31, 28, 27, 25, 26, 117,
40 21, 65, 98, 64, 8, 20, 22, 15, 14, 13, 4, 255, 255, 62, 255, 255, 255, 255, 107, 255,
41 255, 43, 79, 255, 48, 255, 59, 123, 255, 255, 58, 30, 255, 255, 11, 255, 255, 255, 255, 114,
42 255, 255, 55, 39, 255, 255, 109, 255, 118, 255, 61, 255, 255, 93, 255, 33, 255, 121, 78, 94,
43 255, 255, 0, 92, 7, 255, 255, 81, 255, 255, 255, 9, 255, 32, 255, 255, 255, 255, 255, 112,
44 255, 255, 54, 255, 255, 255, 67, 255, 255, 255, 255, 72, 255, 76, 6, 255, 42, 41, 105, 24,
45 18, 255, 97, 86, 255, 120, 2, 255, 255, 255, 255, 19, 255, 110, 16, 255, 255, 255, 53, 255,
46 99, 255, 255, 255, 255, 77, 255, 255, 255, 17, 255, 73, 255, 116, 255, 255, 127, 255, 255, 255,
47 29, 106, 255, 255, 255, 255, 66, 83, 95, 255, 255, 124, 255, 122, 255, 255, 255, 87, 255, 255,
48 68, 255, 101, 255, 255, 255, 34, 255, 49, 63, 255, 255, 45, 255, 255, 84, 23, 255, 255, 96,
49 255, 113, 5, 52, 119, 255, 60, 255, 12, 89, 103, 255, 3, 255, 255, 88, 102, 255, 255, 255,
50 125, 255, 255, 255, 70, 82, 104, 255, 1, 75, 108, 255, 100, 255, 255, 255,
Class that parses advertisements for background broadcasts.
Definition: cs_BackgroundAdvHandler.h:20
uint8_t _uuidMap[256]
Map 16 bit service UUIDs to bit positions in the 128b bitmask.
Definition: cs_BackgroundAdvHandler.h:37
static BackgroundAdvertisementHandler & getInstance()
Definition: cs_BackgroundAdvHandler.h:22
uint64_t _lastBitmask[2]
Store the last mapped bitmask.
Definition: cs_BackgroundAdvHandler.h:56
TYPIFY(CONFIG_SPHERE_ID) _sphereId=0
Own sphere id.
int8_t getAdjustedRssi(int16_t rssi, int16_t rssiOffset)
Return the adjusted RSSI value, given the actual RSSI and the offset from the background advertisemen...
uint8_t _lastMacAddress[MAC_ADDRESS_LEN]
Store the address of the last bitmask.
Definition: cs_BackgroundAdvHandler.h:61
void parseAdvertisement(scanned_device_t *scannedDevice)
Parse, decrypt, and validate an advertisement.
BackgroundAdvertisementHandler()
void handleEvent(event_t &event)
Handle events.
void parseServicesAdvertisement(scanned_device_t *scannedDevice)
Parse an advertisement with incomplete list of service UUIDs.
void handleBackgroundAdvertisement(adv_background_t *backgroundAdvertisement)
Handle a validated background advertisement.
Event listener.
Definition: cs_EventListener.h:17
Author: Crownstone Team Copyright: Crownstone (https://crownstone.rocks) Date: Oct 9,...
Definition: cs_Event.h:26
static const uint8_t MAC_ADDRESS_LEN
Length of a MAC address.
Definition: cs_Typedefs.h:43
Unparsed background advertisement.
Definition: cs_PacketsInternal.h:229
Scanned device.
Definition: cs_PacketsInternal.h:107