Page 1 of 1

How to address a node in ESP BLE Mesh

Posted: Mon Nov 18, 2024 8:58 am
by snutw_
This is a basic question - but somehow the answer does not seem to be easily found in documentation.
How do we address nodes in ESP BLE Mesh? example_msg_common_info_t and esp_ble_mesh_msg_ctx_t expect that they are given uint16_t. But the addresses used in IDF have lengths of 6 == BLE_MESH_ADDR_LEN.
So is there some way that these two formats are converted?

Re: How to address a node in ESP BLE Mesh

Posted: Wed Nov 20, 2024 6:29 am
by chegewara
There is few types of ble address, most important and mandatory unicast address, which is 16 bit and has nothing to do with mac address.
Usually it is assigned by provisioner, although it can be assigned by manufacturer (hardcoded address), but it is not recommended.

Re: How to address a node in ESP BLE Mesh

Posted: Wed Nov 20, 2024 1:48 pm
by snutw_
Ah, ok so you are talking about the ones that have size unit16_t.
Thanks