How do you add a custom GATT service to a HID peripheral.
I'm trying to add a custom GATT service to a HID peripheral. I'm using a BlueNRG-2 and following the BLE_HID_Peripheral example. In the hidService_Type ther are two fileds that look like they might be used for this. They are includedServiceEnabled and includedService. I think I need to set includedServiceEnabled to true. However, I'm not sure what includedService should be. The type for this field is includSer_Type. This type ahs three fields:
uuid - which only holds 16-bits. How can I provide the 128 bits needed for a custom service?
start_handle - where do I get this?
stop_handle - where do I get this?
Are service handles assigned in order such that there is a first and last?
If I have one service, would start_handle and stop_handle be the same?
Also, should I add the custom service and characteristics using aci_gatt_add_service and aci_gatt_add_char just prior to the call to hidAddServices?
