NimBLE-Arduino
NimBLE-Arduino copied to clipboard
change address and payload
hello there, i was reading the docs and studying the code, I was wondering if it is possible to define a custom Bluetooth address for the device and then advertise a custom payload, at least the payload part from what i can see is somehow achievable with the beacon example, thanx a lot for this lib!! :)
Sorry for the late response. Yes, a custom MAC address is able to be set with calls to the esp controller:
uint8_t new_mac[8] = {0x01,0x02,0x03,0x04,0x05,0x06};
esp_base_mac_addr_set(new_mac);
I'm not sure what you mean by a custom payload but most anything is possible here.
And should it work the same for the nrf 51?