Third-Party Library Conflicts

Hi All,

This really hurt my head, your help is highly appreciated.

I have two libraries:

  1. ArduinoBLE
  2. BLEPeripheral

that I must use both in the same sketch (on the same Arduino Nano 33 IoT device), since the later adds more functionality to the former but lacks others!.

The problem is, the later BLEPeripheral already uses ArduinoBLE, thus I have conflict, such as:

previous declaration 'BLEDeviceEvent BLEConnected' BLEConnected = 0,

error: redeclaration of 'BLEDisconnected' BLEDisconnected = 1,

error: expected class-name before ',' token class BLEPeripheral : public BLEDeviceEventListener,

How can I solve this problem please ? :frowning:

that I must use both in the same sketch (on the same Arduino Nano 33 IoT device), since the later adds more functionality to the former but lacks others!.

one is an expansion of the other, that means that yes it adds stuff, but that doesn't mean you can not use what is in the former already, just that you have to find a way to do so.
You should find the library files on your computer and open them in an editor like notepad++ to see how they work and how you can tap into them.