Configuration settings for the application. More...
Macros | |
#define | MAC_RANDOMIZED |
Configuration option to specify whether the BLE address should be randomized when advertising EIDs. | |
#define | APP_CONFIG_LOCK_CODE |
Beacon lock code. More... | |
#define | APP_CONFIG_CALIBRATED_RANGING_DATA {-39, -26, -23, -18, -13, -12, -9, -2} |
Calibrated TX power at 0 m. See the nRF51 Product Specification for corresponding TX values. | |
#define | APP_CONFIG_TLM_TEMP_VBATT_UPDATE_INTERVAL_SECONDS 10 |
How often should the data in the TLM frame be updated. | |
#define | APP_CONFIG_TLM_ADV_INTERLEAVE_RATIO 5 |
How often should the TLM frame be advertised. | |
#define | APP_CONFIG_ADV_INTERVAL_MS_MAX 20000 |
Maximum allowed advertisement interval. Can be undefined without int. | |
#define | APP_CONFIG_ADV_FRAME_SPACING_MS_MIN 500 |
Minimum time between advertisement frames. Imposes limit on minumum accepted advertisement interval. | |
#define | APP_CONFIG_ADV_FRAME_ETLM_SPACING_MS 600 |
The time that is reqired for preparing an eTLM slot. Imposes limit on minimum accepted advertisement interval. | |
#define | ES_STOPWATCH_MAX_USERS 4 |
Maximum amount of users that can be registered with the es_stopwatch module. | |
#define | DEBUG_TIMING_INIT_VALUE 65280 |
Initial time (as recommended by Google) to test the TK rollover behavior. | |
#define | APP_CONFIG_TIMING_INIT_VALUE DEBUG_TIMING_INIT_VALUE |
Initializing value for the timing value of security slots. | |
#define | APP_CONFIG_TLM_TEMP_INTERVAL_SECONDS (30) |
How often should the temperature of the beacon be updated when TLM slot is configured. | |
#define | APP_CONFIG_TLM_VBATT_INTERVAL_SECONDS (30) |
How often should the battery voltage of the beacon be updated when TLM slot is configured. | |
#define | BUTTON_REGISTRATION BUTTON_1 |
Button to push when putting the beacon in registration mode. | |
#define | USE_ECB_ENCRYPT_HW 1 |
Configuration option to use the hardware peripheral (1) or the software library (0) for ECB encryption (decryption always uses the software library). | |
#define | APP_DEVICE_NAME "nRF5x_Eddystone" |
Advertised device name in the scan response when in connectable mode. | |
#define | IS_SRVC_CHANGED_CHARACT_PRESENT 0 |
Information whether the service changed characteristic is available. If it is not enabled, the server's database cannot be changed for the lifetime of the device. | |
#define | MAX_ADV_INTERVAL (10240) |
Maximum connection interval (in ms). | |
#define | MIN_CONN_ADV_INTERVAL (20) |
Minimum connection interval (in ms). | |
#define | MIN_NON_CONN_ADV_INTERVAL (100) |
Minimum advertisement interval for non-connectable advertisements (in ms). | |
#define | CENTRAL_LINK_COUNT 0 |
Number of central links used by the application. When changing this number, remember to adjust the RAM settings. | |
#define | PERIPHERAL_LINK_COUNT 1 |
Number of peripheral links used by the application. When changing this number, remember to adjust the RAM settings. | |
#define | APP_CFG_NON_CONN_ADV_TIMEOUT 0 |
Time for which the device must be advertising in non-connectable mode (in seconds). 0 disables the time-out. | |
#define | APP_CFG_NON_CONN_ADV_INTERVAL_MS 1000 |
The advertising interval for non-connectable advertisement (in milliseconds). This value can vary between 100 ms and 10.24 s. | |
#define | APP_CFG_CONNECTABLE_ADV_TIMEOUT 60 |
Time for which the device must be advertising in connectable mode (in seconds). 0 disables the time-out. | |
#define | APP_CFG_CONNECTABLE_ADV_INTERVAL_MS 100 |
The advertising interval for connectable advertisement (in milliseconds). This value can vary between 20 ms and 10.24 s. | |
#define | APP_CFG_DEFAULT_RADIO_TX_POWER 0x00 |
Default TX power of the radio. | |
#define | MIN_CONN_INTERVAL MSEC_TO_UNITS(50, UNIT_1_25_MS) |
Minimum acceptable connection interval (20 ms). The connection interval uses 1.25 ms units. | |
#define | MAX_CONN_INTERVAL MSEC_TO_UNITS(90, UNIT_1_25_MS) |
Maximum acceptable connection interval (75 ms). The connection interval uses 1.25 ms units. | |
#define | SLAVE_LATENCY 0 |
Slave latency. | |
#define | CONN_SUP_TIMEOUT MSEC_TO_UNITS(4000, UNIT_10_MS) |
Connection supervision time-out (4 seconds). The supervision time-out uses 10 ms units. | |
#define | FIRST_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(5000, APP_TIMER_PRESCALER) |
Time from initiating an event (connection or start of notification) to the first time sd_ble_gap_conn_param_update is called (5 seconds). | |
#define | NEXT_CONN_PARAMS_UPDATE_DELAY APP_TIMER_TICKS(30000, APP_TIMER_PRESCALER) |
Time between each call to sd_ble_gap_conn_param_update after the first call (30 seconds). | |
#define | MAX_CONN_PARAMS_UPDATE_COUNT 3 |
Number of attempts before giving up the connection parameter negotiation. | |
#define | APP_MAX_ADV_SLOTS 5 |
Maximum number of advertisement slots. | |
#define | APP_MAX_EID_SLOTS APP_MAX_ADV_SLOTS |
Maximum number of EID slots. More... | |
#define | APP_IS_VARIABLE_ADV_SUPPORTED ESCS_BROADCAST_VAR_ADV_SUPPORTED_No |
Information whether variable advertisement intervals are supported. | |
#define | APP_IS_VARIABLE_TX_POWER_SUPPORTED ESCS_BROADCAST_VAR_TX_POWER_SUPPORTED_Yes |
Information whether variable advertisement TX power is supported. | |
#define | APP_IS_UID_SUPPORTED ESCS_FRAME_TYPE_UID_SUPPORTED_Yes |
Information whether the UID frame is supported. | |
#define | APP_IS_URL_SUPPORTED ESCS_FRAME_TYPE_URL_SUPPORTED_Yes |
Information whether the URL frame is supported. | |
#define | APP_IS_TLM_SUPPORTED ESCS_FRAME_TYPE_TLM_SUPPORTED_Yes |
Information whether the TLM frame is supported. | |
#define | APP_IS_EID_SUPPORTED ESCS_FRAME_TYPE_EID_SUPPORTED_Yes |
Information whether the EID frame is supported. | |
#define | APP_IS_REMAIN_CONNECTABLE_SUPPORTED ESCS_FUNCT_REMAIN_CONNECTABLE_SUPPORTED_Yes |
Information whether the 'remain connectable' option is supported. | |
#define | APP_ES_UUID 0xFEAA |
UUID for Eddystone beacons according to specification. | |
#define | APP_ES_UID_FRAME_TYPE ES_FRAME_TYPE_UID |
UID frame type (fixed at 0x00). | |
#define | APP_ES_UID_NAMESPACE |
Mock values for 10-byte Eddystone UID ID namespace. More... | |
#define | APP_ES_UID_ID |
Mock values for 6-byte Eddystone UID ID instance. More... | |
#define | APP_ES_UID_RFU 0x00, 0x00 |
Reserved for future use according to specification. | |
#define | APP_ES_URL_FRAME_TYPE ES_FRAME_TYPE_URL |
URL Frame type (fixed at 0x10). | |
#define | APP_ES_URL_SCHEME 0x01 |
URL prefix scheme according to specification (0x01 = "https://www"). | |
#define | APP_ES_URL_URL |
"nordicsemi.com". Last byte suffix 0x00 = ".com" according to specification. More... | |
#define | DEFAULT_FRAME_TYPE APP_ES_URL_FRAME_TYPE |
Frame type of default frame. | |
#define | DEFAULT_FRAME_TX_POWER 0x00 |
Default frame TX power. | |
#define | DEFAULT_FRAME_DATA {DEFAULT_FRAME_TYPE, DEFAULT_FRAME_TX_POWER, APP_ES_URL_SCHEME, APP_ES_URL_URL} |
This value should mimic the data that would be written to the RW ADV Slot characteristic (for example, no RSSI for UID). | |
#define | DEFAULT_FRAME_LENGTH 14 |
1 - Frame Type, 1 - TX - power 1 - URL Scheme, URL - 11 = 14 | |
#define | APP_TIMER_PRESCALER 0 |
Value of the RTC1 PRESCALER register (4095 = 125 ms per tick). | |
#define | APP_TIMER_OP_QUEUE_SIZE 10 |
Size of the timer operation queues. | |
#define | SCHED_MAX_EVENT_DATA_SIZE sizeof(app_timer_event_t) |
Maximum size of the scheduler event data. | |
#define | SCHED_QUEUE_SIZE 10 |
Size of the scheduler queue. | |
Configuration settings for the application.
These configuration settings are defined in the application. You can find the configuration file at examples\ble_peripheral\ble_app_eddystone\es_app_config.h
.
#define APP_CONFIG_LOCK_CODE |
Beacon lock code.
#define APP_ES_UID_ID |
Mock values for 6-byte Eddystone UID ID instance.
#define APP_ES_UID_NAMESPACE |
Mock values for 10-byte Eddystone UID ID namespace.
#define APP_ES_URL_URL |
"nordicsemi.com". Last byte suffix 0x00 = ".com" according to specification.
#define APP_MAX_EID_SLOTS APP_MAX_ADV_SLOTS |
Maximum number of EID slots.