- Fri Feb 28, 2020 3:25 pm
#212866
I have SparkFun_Apollo3_AmbiqSuite_BSP examples "ble_freertos_amdtps" and "ble_freertos_amdtpc" compiled, using AmbiqMicroSDK Rel2.2.0, and running on each of two Redboard Artemis boards. The client (amdtpc) retrieves the MAC address of the server (amdtps) and displays it under the menu options "Show Scan Results" and "Create Connection". I want to also display the friendly name, which is set to "Amdtp" in "amdtp_main.c" for the server. The scan results retrieved by the client with the function "AppScanGetResult()" in file "ble_menu.c" do not include the friendly name (it is not part of the "appDevInfo_t" structure). I have been trying to find a function that the client can use to retrieve the friendly name, but have been unsuccessful. I know the server broadcasts its name because the "Nrf Connect App", running on an Android phone, sees and displays it prior to connecting. I did find the function "AppDbGetDevName()" in the "App_Framwork_API.pdf" document but there is no way to specify a handle or device ID to indicate which of the responding devices I want the name for. Regardless the function does not return anything when called from the client. Does anyone know how to retrieve the friendly name?