Page 2 of 2

Re: Questions regarding a MDF-Scenario

Posted: Tue Jun 18, 2019 8:32 am
by saaymeen
Maybe you can point out to us how to find service ID of device which is like this: "0000aaaa-0000-0000-abcd-ef0123456789" too, where the REMOTE_SERVICE_UUID gets only defined as 0x00FF (uint16_t I believe).
We could not find documentation on that one.

Thank your for the patience and best regards

Re: Questions regarding a MDF-Scenario

Posted: Wed Jun 19, 2019 8:16 am
by @In逍遥子
Ok, please try to use the IDF ble example in the MDF directory.

Re: Questions regarding a MDF-Scenario

Posted: Wed Jun 19, 2019 9:18 am
by saaymeen
Thank you, I will try that out. Stupid of me that I didn't think of trying to use the example in the submodule.
I have found that the esp idf ble address type contains a 128 bit field. In which order do we have to arrange the uuid128 array to search for following address: "0000aaaa-0000-0000-abcd-ef0123456789".

Thank you!!

Re: Questions regarding a MDF-Scenario

Posted: Sun Jul 28, 2019 6:51 pm
by LahiruLKR
Hi all,

I'm facing the same situation as saaymeen's, which is to scan beacons (BLE scan) from all nodes inside a mesh network. Is it possible to implement the code in gatt_client example inside esp-mdf example codes? Or else please suggest me a good way to implement this requirement.

Thank you! Kind regards

Re: Questions regarding a MDF-Scenario

Posted: Mon Jul 29, 2019 3:00 am
by @In逍遥子
You can add code related to BLE scanning to your MDF project. For example: light example

Re: Questions regarding a MDF-Scenario

Posted: Wed Jul 31, 2019 12:46 pm
by LahiruLKR
I was able to complete a BLE scan using MDF mlink API (mlink_ble). The similar functionalities in gatt_client are implemented there. To filter the beacon packets with UUID I used esp_ibeacon_api.c which has implented in IDF Bluetooth examples. Thank you very much @In逍遥子 for your guidance and saaymeen for this conversation.