mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-22 05:00:55 +01:00
e3ee082dd7
This is a specialized container class to hold BLE attribute values. - Removes the use of std::string previously used to store the values. - Allows for setting/getting/notifying values from std::string, std::vector<uint8_t>, Arduino String, const char*, and uint8_t buffers. - Has operators retrieve the value as std::string, Arduino String, std::vector<uint8_t>, uint8_t* or char pointers. - Includes iterators and subscript/random access operator. - Introduces a max length parameter to the creation of server characteristics/descriptors to limit the size of the memory footprint. - Nearly Seamless integration with existing code. - Adds a config option to enable/disable timestamp storage when the value is updated. - Adds a config option to specify the initial size of the value container if not specified in the constructor.
72 lines
2.6 KiB
Text
72 lines
2.6 KiB
Text
menu "ESP-NimBLE-CPP configuration"
|
|
|
|
choice NIMBLE_CPP_LOG_LEVEL
|
|
prompt "NimBLE CPP log verbosity"
|
|
default NIMBLE_CPP_LOG_LEVEL_NONE
|
|
help
|
|
Select NimBLE CPP log verbosity level.
|
|
|
|
config NIMBLE_CPP_LOG_LEVEL_NONE
|
|
bool "No logs"
|
|
config NIMBLE_CPP_LOG_LEVEL_ERROR
|
|
bool "Error logs"
|
|
config NIMBLE_CPP_LOG_LEVEL_WARNING
|
|
bool "Warning logs"
|
|
config NIMBLE_CPP_LOG_LEVEL_INFO
|
|
bool "Info logs"
|
|
config NIMBLE_CPP_LOG_LEVEL_DEBUG
|
|
bool "Debug logs"
|
|
endchoice #NIMBLE_CPP_LOG_LEVEL
|
|
|
|
config NIMBLE_CPP_LOG_LEVEL
|
|
int
|
|
default 0 if NIMBLE_CPP_LOG_LEVEL_NONE
|
|
default 1 if NIMBLE_CPP_LOG_LEVEL_ERROR
|
|
default 2 if NIMBLE_CPP_LOG_LEVEL_WARNING
|
|
default 3 if NIMBLE_CPP_LOG_LEVEL_INFO
|
|
default 4 if NIMBLE_CPP_LOG_LEVEL_DEBUG
|
|
|
|
config NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT
|
|
bool "Show NimBLE return codes as text in debug log."
|
|
default "n"
|
|
help
|
|
Enabling this option will display return code values as text
|
|
messages in the debug log. This will use approximately 8kB
|
|
of flash memory.
|
|
|
|
config NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT
|
|
bool "Show NimBLE gap events as text in debug log."
|
|
default "n"
|
|
help
|
|
Enabling this option will display gap event codes as text
|
|
messages in the debug log. This will use approximately 1kB
|
|
of flash memory.
|
|
|
|
config NIMBLE_CPP_ENABLE_ADVERTISMENT_TYPE_TEXT
|
|
bool "Show advertisment types as text in debug log."
|
|
default "n"
|
|
help
|
|
Enabling this option will display advertisment types recieved
|
|
while scanning as text messages in the debug log.
|
|
This will use approximately 250 bytes of flash memory.
|
|
|
|
config NIMBLE_CPP_ATT_VALUE_TIMESTAMP_ENABLED
|
|
bool "Enable timestamps to be stored with attribute values."
|
|
default "n"
|
|
help
|
|
Enabling this option will store the timestamp when an attribute value is updated.
|
|
This allows for checking the last update time using getTimeStamp()
|
|
or getValue(time_t*). If disabled, the timestamp returned from these functions will be 0.
|
|
Disabling timestamps will reduce the memory used for each value.
|
|
|
|
config NIMBLE_CPP_ATT_VALUE_INIT_LENGTH
|
|
int "Initial attribute value size (bytes) for empty values."
|
|
range 1 512
|
|
default 20
|
|
help
|
|
Sets the default allocation size (bytes) for each attribute if not specified
|
|
when the constructor is called. This is also the size used when a remote
|
|
characteristic or descriptor is constructed before a value is read/notifed.
|
|
Increasing this will reduce reallocations but increase memory footprint.
|
|
|
|
endmenu
|