Minor temporary patch to allow DFU packet callback

Fork of BLE_API by Bluetooth Low Energy

Embed: (wiki syntax)

« Back to documentation index

URIBeaconConfigService Class Reference

URIBeaconConfigService Class Reference

UriBeacon Configuration Service. More...

#include <URIBeaconConfigService.h>

Public Member Functions

 URIBeaconConfigService (BLEDevice &bleIn, Params_t &paramsIn, bool resetToDefaultsFlag, const char *defaultURIDataIn, PowerLevels_t &defaultAdvPowerLevelsIn)

Static Public Attributes

static const uint8_t TX_POWER_MODE_LOWEST = 0
 Transmission Power Modes for UriBeacon.
static const uint8_t TX_POWER_MODE_LOW = 1
static const uint8_t TX_POWER_MODE_MEDIUM = 2
static const uint8_t TX_POWER_MODE_HIGH = 3
static const unsigned int NUM_POWER_MODES = 4

Detailed Description

UriBeacon Configuration Service.

Can be used to set URL, adjust power levels, and set flags. See http://uribeacon.org

Definition at line 46 of file URIBeaconConfigService.h.


Constructor & Destructor Documentation

URIBeaconConfigService ( BLEDevice bleIn,
Params_t &  paramsIn,
bool  resetToDefaultsFlag,
const char *  defaultURIDataIn,
PowerLevels_t &  defaultAdvPowerLevelsIn 
)
Parameters:
ref]ble BLEDevice object for the underlying controller.
in/out]paramsIn Reference to application-visible beacon state, loaded from persistent storage at startup. [in] resetToDefaultsFlag Applies to the state of the 'paramsIn' parameter. If true, it indicates that paramsIn is potentially un-initialized, and default values should be used instead. Otherwise, paramsIn overrides the defaults.
[in]defaultUriDataInDefault un-encoded URI; applies only if the resetToDefaultsFlag is true.
[in]defaultAdvPowerLevelsInDefault power-levels array; applies only if the resetToDefaultsFlag is true.

Definition at line 92 of file URIBeaconConfigService.h.


Field Documentation

const unsigned int NUM_POWER_MODES = 4 [static]

Number of Power Modes defined

Definition at line 55 of file URIBeaconConfigService.h.

const uint8_t TX_POWER_MODE_HIGH = 3 [static]

High TX power mode

Definition at line 54 of file URIBeaconConfigService.h.

const uint8_t TX_POWER_MODE_LOW = 1 [static]

Low TX power mode

Definition at line 52 of file URIBeaconConfigService.h.

const uint8_t TX_POWER_MODE_LOWEST = 0 [static]

Transmission Power Modes for UriBeacon.

Lowest TX power mode

Definition at line 51 of file URIBeaconConfigService.h.

const uint8_t TX_POWER_MODE_MEDIUM = 2 [static]

Medium TX power mode

Definition at line 53 of file URIBeaconConfigService.h.