aci_gatt_read_using_charac_uuid returns ERR_INVALID_HCI_CMD_PARAMS
I try to read the device name of a connected central device from the peripheral once the connection is complete
GAP_ConnectionComplete_CB(cc->peer_bdaddr, cc->handle);
uint16_t uuid = 0x2a00;
resp = aci_gatt_read_using_charac_uuid(cc->handle, 0x0001, 0xffff, UUID_TYPE_16, (uint8_t*)&uuid);but the response is ERR_INVALID_HCI_CMD_PARAMS. Can someone spot my mistake? It seems that if I do the same thing from the BlueNRG GUI the parameters are valid. Of course I cannot confirm that the GUI really uses aci_gatt_read_using_charac_uuid().
Update:
What also confuses me is that according to UM1865 the aci_gatt_read_using_charc_uuid function should only return 0x00, 0x42 or 0x46 but not 0x12.
