Skip to content

Commit c0d180a

Browse files
authored
Update CharacteristicsConfiguration.ino
Removed example of how to set a custom MAC address as that functionality seems to have been removed by Espressif
1 parent 6f3308f commit c0d180a

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

examples/CharacteristicsConfiguration/CharacteristicsConfiguration.ino

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@
99

1010
BleGamepad bleGamepad("Custom Contoller Name", "lemmingDev", 100); // Set custom device name, manufacturer and initial battery level
1111
BleGamepadConfiguration bleGamepadConfig; // Create a BleGamepadConfiguration object to store all of the options
12-
13-
// Use the procedure below to set a custom Bluetooth MAC address
14-
// Compiler adds 0x02 to the last value of board's base MAC address to get the BT MAC address, so take 0x02 away from the value you actually want when setting
15-
// I've noticed the first number is a little picky and if set incorrectly don't work and will default to the board's embedded address
16-
// 0xAA definately works, so use that, or experiment
17-
//uint8_t newMACAddress[] = {0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF - 0x02}; // This doesn't seem to be working any more
1812

1913
void setup()
2014
{
@@ -37,7 +31,6 @@ void setup()
3731
bleGamepadConfig.setAxesMax(0x7FFF); // 32767 --> int16_t - 16 bit signed integer - Can be in decimal or hexadecimal
3832

3933
bleGamepad.begin(&bleGamepadConfig); // Begin gamepad with configuration options
40-
//esp_base_mac_addr_set(&newMACAddress[0]); // Set new MAC address - this doesn't seem to be working any more
4134
}
4235

4336
void loop()

0 commit comments

Comments
 (0)