I am getting a
<debug> app: char val length 22
<debug> app: Failed to initialize characteristics. Error code: 0x04
<debug> app: Unable to create RegCertDataList characteristic. Error code 0x4
while creating my service tables. But it is so small. How could this be?
The service table contains
- one service with two characteristics,
- A second service with one characteristic
- the DeviceInformationService with all the characteristics
- the battery service with one characteristic
The code itself is not large - 40096 bytes according to Keil, half of which is due to NRF_LOG.
It appears the size of the characteristic value may be part of the issue.
That being said, there is one service I am creating with two characteristics that are never read and do not support being read. When written, the application catches the written value and performs tasks based upon that. The written value has no meaning and does not need to be stored. I set a 0 value for the characteristic value size and that did not work. Will I be forced to make the size of the value the size of the data written even though that written data serves no purpose in the service tables?