You can set BT device address for your BT device in the makefile of the application. Change BT_DEVICE_ADDRESS to an appropriate address. Is this what you are looking for?
The BT address is 6 bytes, for example 20819A10FFEE. By default, the SDK will set a BDA for your device by combining the 7 hex digit device ID with the last 5 hex digits of the host PC MAC address.
We are going to buy 4000 CYBT-213043-02 modules, BUT I DO NOT WANT TO BE LOADING DIFFERENT CODES WITH THE ABT_DEVICE_ADDRESS LINE modified, it is tedious for us,
I want use an ID or some identifier that the BLE module already has as an example what is mentioned in this thread How to get PSOC 6 device ID or something unique id to differentiating chip
but I want to get a factory identifier that has each module as the factory ID or something like that for CYBT-21304-02,
I will have to assign an identifier with the device number and the name( Network name) of the network
when I create a network with MeshClientControl APP for example Mesh Name: RED1 (as shown in the image)
and then provision the other nodes
in the provisioning code client / vendor client, where the network name is stored: RED1
Where can I get the network name: RED 1 in the code? to print it with the line
WICED_BT_TRACE ("MESH NAME:% B \ n", saved_mesh_name);
1 of 1 people found this helpful
The network name is stored in the JSON file which is the database of the provisioner. You will have to read it from it.
Please check mesh_client_lib/meshdb.c for implementation of routines for database operations.