This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get BLE shield address.

Hi All,

We have been working on Arduino Mega board with BLE shield. We want to get the address of the BLE shield and we are using aci library for that.

I found this API - lib_aci_get_address(). As per the lib_aci.cpp, this API is calling an internal API "acil_encode_cmd_get_address" and passing some global buffer as a parameter. I want to know is there a way to retrieve that buffer. I tried directly calling above internal API(acil_encode_cmd_get_address) with my own buffer(buffer of size 32 containing uint8_t) as a parameter, but it returned some random string.

I want to know the exact process to retrieve the BLE shield address. Are there other APIs that I have to call? lib_aci_get_address() API documentation does not specify anything.

Please give me a sample program if there is one. It would help me very much.

Thanks in advance.

Related