ArduinoBLE - how to set my address to RANDOM?

hello to everyone and regards from Bulgaria.
I have peripheral device and need to set my mac address on esp32 to RANDOM. Or set only flag on the BLE packet who is advertising.
I want to make gopro camera emulator who can connect to gopro remote control. I have try many many options, modify library and etc. but not success.
Thank you in advance.

I find that piece of library that I think is the key...but no success...


BLEDevice::BLEDevice() :
  _advertisementTypeMask(0),
  _eirDataLength(0),
  _rssi(127)
{
  //memcpy(_address, myaddress, sizeof(_address));
  memset(_address, 0x00, sizeof(_address));
}

BLEDevice::BLEDevice(uint8_t addressType, uint8_t address[6]) :
  _addressType(addressType),
  _advertisementTypeMask(0),
  _eirDataLength(0),
  _rssi(127)
{
  memcpy(_address, address, sizeof(_address));
}

macAdresses
GoPro 1907 ....:34 is my emulator(copy of all advertising data, characteristics and descriptors)

My problem for now is - the remote control doesnt want to pair to my device.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.