UriBeacon Configuration Service. More...
#include <URIBeaconConfigService.h>
Data Structures | |
struct | Params_t |
Public Member Functions | |
URIBeaconConfigService (BLE &bleIn, Params_t ¶msIn, 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. More... | |
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 | NUM_POWER_MODES = 4 |
UriBeacon Configuration Service.
You can use this to set URL, adjust power levels and set flags. See http://uribeacon.org
Definition at line 58 of file URIBeaconConfigService.h.
URIBeaconConfigService | ( | BLE & | bleIn, |
Params_t & | paramsIn, | ||
bool | resetToDefaultsFlag, | ||
const char * | defaultURIDataIn, | ||
PowerLevels_t & | defaultAdvPowerLevelsIn | ||
) |
[in] | bleIn | BLE 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] | defaultURIDataIn | Default un-encoded URI. Applies only if the resetToDefaultsFlag is true. |
[in] | defaultAdvPowerLevelsIn | Default power-levels array. Applies only if the resetToDefaultsFlag is true. |
Definition at line 110 of file URIBeaconConfigService.h.
|
static |
Number of power modes defined.
Definition at line 67 of file URIBeaconConfigService.h.
|
static |
High TX power mode.
Definition at line 66 of file URIBeaconConfigService.h.
|
static |
Low TX power mode.
Definition at line 64 of file URIBeaconConfigService.h.
|
static |
Transmission power modes for UriBeacon.
Lowest TX power mode.
Definition at line 63 of file URIBeaconConfigService.h.
|
static |
Medium TX power mode.
Definition at line 65 of file URIBeaconConfigService.h.