acconeer / acconeer-android-example-apps

Other
0 stars 4 forks source link

need communication protocol #2

Closed wycroom closed 2 years ago

wycroom commented 2 years ago

Hi. What is the communication protocol between device and app?

vackraetraed commented 2 years ago

Hello @wycroom

On our developer site under Applications and Tools you can download the acconeer_xm122_bluetooth_demo_app_v2_6_0.zip In this zip you can find a folder called "doc", this contains a markdown file called "BLE_GATT_API.md", this contains the GATT API used by the Android app.

wycroom commented 2 years ago

Thanks. If I develop my xm122 pcb. What is the bluetooth device name that the app can find?

vackraetraed commented 2 years ago

Hello @wycroom

When downloading the bluetooth demo app on our developer site and looking in the source code I can find the following line in "acc_ble_app_common_xm122.c": #define DEVICE_NAME "XM122 IoT Module" /**< Name of device. Will be included in the advertising data. */ So the device name should be XM122 IoT Module, is this what you are looking for? This can of course be changed to whatever you want the device name to be since the source code is available.