Questions regarding a MDF-Scenario

saaymeen
Posts: 8
Joined: Wed Jun 12, 2019 1:54 pm

Re: Questions regarding a MDF-Scenario

Postby saaymeen » Tue Jun 18, 2019 8:32 am

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

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: Questions regarding a MDF-Scenario

Postby ESP_@In逍遥子 » Wed Jun 19, 2019 8:16 am

Ok, please try to use the IDF ble example in the MDF directory.

saaymeen
Posts: 8
Joined: Wed Jun 12, 2019 1:54 pm

Re: Questions regarding a MDF-Scenario

Postby saaymeen » Wed Jun 19, 2019 9:18 am

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!!

LahiruLKR
Posts: 6
Joined: Sun Jul 28, 2019 6:07 pm

Re: Questions regarding a MDF-Scenario

Postby LahiruLKR » Sun Jul 28, 2019 6:51 pm

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

ESP_@In逍遥子
Posts: 132
Joined: Thu Nov 15, 2018 2:06 am

Re: Questions regarding a MDF-Scenario

Postby ESP_@In逍遥子 » Mon Jul 29, 2019 3:00 am

You can add code related to BLE scanning to your MDF project. For example: light example

LahiruLKR
Posts: 6
Joined: Sun Jul 28, 2019 6:07 pm

Re: Questions regarding a MDF-Scenario

Postby LahiruLKR » Wed Jul 31, 2019 12:46 pm

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.

Who is online

Users browsing this forum: No registered users and 5 guests