In order to auto register the device on server, I need to read and customize the MAC address of WiFi and Bluetooth, but no example code in Arduino IDE, would any one tell me how to do this?
For BLE, you can read the MAC address in Arduino using the getLocalAddress function in the BLEDevice class. Changing of the BLE MAC address in Arduino is not supported, as it requires overwriting the existing BLE MAC in the EFUSE. If you wish to change the BLE MAC, you will need to use the standard SDK to write to EFUSE