I am trying to incorporate our Manufacturer name to the Device Information Service. I am working on the ble_app_uart example which does not include the file ble_dis.c nor ble_dis.h Therefore, I copied the ble_dis.c and ble_dis.h from the ble_app_hrs_s132_pca10040 example which incorporates a Manufacturer Name to the Device Information Service. I was able to add these two files to the Application folder. Here is my project workspace: Application +main.c
- ble_dis.c ble_dis.h
I added the following to main.c:
#include "ble_dis.h"
ble_dis_init_t dis_init;
// Initialize Device Information Service.
memset(&dis_init, 0, sizeof(dis_init));
ble_srv_ascii_to_utf8(&dis_init.manufact_name_str, (char *)MANUFACTURER_NAME);
When I built the project, I got the following error message
......\main.c(45): error: #5: cannot open source input file "ble_dis.h": No such file or directory #include "ble_dis.h"
I have the following questions:
1)Is there a better way to include the ble_dis files rather than manually add them the way that I did? 2)Why doesn't the application see ble_dis.h?