Hello,
I am using visual studio code with PlatformIO (4.3.4) to program my nrf52832 on Nrf52-DK (PCA10040) using mbed framework (6.60200.200722).
I need to store measurements from 5 sensors with timestamp information inside internal flash memory and broadcast them using BLE GATT services whenever a connection appears.
Searching for storage methods, I found the kv store but when i try to run the example, it returns error number 265.
I’ve also tried to add the mbed_app.json with target_overrides with wildcard (*) and property storage.storage_type": " TDB_INTERNAL", but still i get 265 error code. Same results again adding the mbed_lib.json with storage_type configuration.
mbed_app.json:
{
"target_overrides": {
"*": {
"storage.storage_type": "TDB_INTERNAL"
}
}
}
mbed_lib.json:
{
"name": "storage",
"config": {
"storage_type": {
"help": "Options are TDB_INTERNAL, TDB_EXTERNAL, TDB_EXTERNAL_NO_RBP, FILESYSTEM or FILESYSTEM_NO_RBP.",
"value": "TDB_INTERNAL"
},
"default_kv": {
"help": "A string name for the default kvstore configurtaion",
"value": "kv"
}
}
}
It’s my first time developing with Nordic board
Is kv store a good way to store, retrieve and delete data like sensor measurements and if so what did i miss?
Any help or pointers would be very much appreciated.