This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sample for BLE Device Information Service

Hi,

I am using nRF52832 with SDK v16 with s112 BLE stack.

I am trying to enable the DIS service like below:

  ble_dis_init_t dis_init = {0};
  dis_init.manufact_name_str.p_str = MANUFACTURER_NAME;
  dis_init.manufact_name_str.length = sizeof(MANUFACTURER_NAME) - 1;
  dis_init.model_num_str.p_str = MODEL_NUMBER;
  dis_init.model_num_str.length = sizeof(MODEL_NUMBER) - 1;
  APP_ERROR_CHECK(ble_dis_init(&dis_init));

The device can boot successfully but when I checked the DIS service from "nRF Connect" app, I can see the two characteristics but can't see any value of them even after I clicked "read characteristics" menu item. Here "MANUFACTURER_NAME" and "MODEL_NUMBER" are both defined as string literals.

Are there any hints or working examples for the DIS service?

Parents Reply Children
No Data
Related