Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

PSoC™ 4

Anonymous
Not applicable

Hi,

   

I am trying to get Local Random/Public Bluetooth Device Address of my dongle, to call Cmd_Get_Bluetooth_Device_Address_API by sending a byteArray,

   


// 02_Public: Cmd_Get_Bluetooth_Device_Address_Api (Trigger Complete)
cmdPacket_GetBleDevicePublicAddress[0] = 0x0C
cmdPacket_GetBleDevicePublicAddress[1] = 0x00
cmdPacket_GetBleDevicePublicAddress[2] = 0x01; // sizeof(uint8)
cmdPacket_GetBleDevicePublicAddress[3] = 0x00;
cmdPacket_GetBleDevicePublicAddress[4] = 0x00;// Public Address Type
 

   

However, whenever I try this after the Cmd_Init_Ble_Stack_Api() was successfully done, I can only get a signal of CYBLE_ERROR_INVALID_PARAMETER

   

Could anyone tell me what did I miss to initial its address?

   

How could I get the Random and Public Address?

   

Thank you!

0 Likes
1 Solution
Anonymous
Not applicable

Hi,

   

 

   

Address of the device should be of 6 bytes . Also we should mention the type of address.

   

 

   

Simply we cannot give 5 bytes and send a command to set the address. 

   

 

   

Your input argument(5bytes) is not correct that's why it is returning CYBLE_ERROR_INVALID_PARAMETER

   

 

   

Regards,

   

Vikas.

View solution in original post

0 Likes
8 Replies