Hello
I am trying to implement Device Information Service using the sample code "ble_app_bps_s110_pca10028" in nRF51SDK 7.2.0. But I couldn't get any change when I edit the source code like this. Do I lack of anything??
#define DEVICE_NAME "MyDev"
#define MANUFACTURER_NAME "Manuf_name"
#define MODEL_NUM "Model01"
#define SERIAL_NUM "10000"
#define HW_REV_NUM "1.1"
#define FW_REV_NUM "2.2"
#define SW_REV_NUM "3.3"
// Initialize Device Information Service.
memset(&dis_init, 0, sizeof(dis_init));
ble_srv_ascii_to_utf8(&dis_init.manufact_name_str, MANUFACTURER_NAME);
ble_srv_ascii_to_utf8(&dis_init.model_num_str, MODEL_NUM);
ble_srv_ascii_to_utf8(&dis_init.serial_num_str, SERIAL_NUM);
ble_srv_ascii_to_utf8(&dis_init.hw_rev_str, HW_REV_NUM);
ble_srv_ascii_to_utf8(&dis_init.fw_rev_str, FW_REV_NUM);
ble_srv_ascii_to_utf8(&dis_init.sw_rev_str, SW_REV_NUM);
sys_id.manufacturer_id = MANUFACTURER_ID;
sys_id.organizationally_unique_id = ORG_UNIQUE_ID;
dis_init.p_sys_id = &sys_id;
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&dis_init.dis_attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&dis_init.dis_attr_md.write_perm);
err_code = ble_dis_init(&dis_init);
APP_ERROR_CHECK(err_code);
Thanks in advance
Marchall