I'm trying to create a user defined HCI command for nrf52840 over the Zephyr APIs to be used against Bluez stack on Linux.
I've enabled the CONFIG_BT_HCI_VS_EVT_USER=y.
But I'm unable to use, bt_hci_register_vnd_evt_cb, as the the compiler complains it's undefined.
Found the bt_hci_raw_cmd_ext_register to register a callback, which seems to work. ie. I was able to register a OPCODE under BT_OGF_VS, and the callback works correctly except it's not clear how I can return a complex result back to the host.
Below is the callback I used for testing purpose.
uint8_t hci_cb(struct net_buf_simple *buf){
LOG_DBG("USER_CALLED");
return 0;
}TIA for any pointers.
Thanks.