How to address a node in ESP BLE Mesh

snutw_
Posts: 34
Joined: Wed Aug 21, 2024 1:48 pm

How to address a node in ESP BLE Mesh

Postby snutw_ » Mon Nov 18, 2024 8:58 am

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?

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: How to address a node in ESP BLE Mesh

Postby chegewara » Wed Nov 20, 2024 6:29 am

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.

snutw_
Posts: 34
Joined: Wed Aug 21, 2024 1:48 pm

Re: How to address a node in ESP BLE Mesh

Postby snutw_ » Wed Nov 20, 2024 1:48 pm

Ah, ok so you are talking about the ones that have size unit16_t.
Thanks

Who is online

Users browsing this forum: Majestic-12 [Bot] and 380 guests