Hi,
I have a custom board with an nRF52832. The build environment is nRF Connect 2.3.0. I have configured DIS and it works as expected, however, I need the serial number of the device to be populated at runtime since it is stored when the board is manufactured.
I tried: settings_runtime_set("bt/dis/serial",CONFIG_BT_DIS_SERIAL_NUMBER_STR,sizeof(intserial)); but it returns a -22. I am not sure where the string "bt/dis/serial" comes from, i found it in another post and they wanted to do the same thing.
In general (other than this) I am not using settings, the serial number is stored in UICR 0x10001080 and I can easily get that out. can you please point me in the correct direction? I looked at peripheral_dis and it does a lot of setting:
#if defined(CONFIG_BT_DIS_SERIAL_NUMBER)
settings_runtime_set("bt/dis/serial",
CONFIG_BT_DIS_SERIAL_NUMBER_STR,
sizeof(CONFIG_BT_DIS_SERIAL_NUMBER_STR));
#endif
Unfortunately it did not work for me. ITs very possible I missed something....Thanks for the help