1

Topic: RemoteXY lib version 4.1.4 compiler waring about deprecated

I get the following compiler waring when programming an ESP32 board and using BLE to connect to my phone. Code still works, but when will issue resulting in warnings be corrected?
Warning is:
libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:74:14: warning: 'BLE2902' is deprecated: NimBLE does not support manually adding 2902 descriptors as they are automatically added when the characteristic has notifications or indications enabled. Get/Set the notifications/indications properties of the characteristic instead. This class will be removed in a future version. [-Wdeprecated-declarations]
   74 |     BLE2902 *ble2902 = new BLE2902();

2

Re: RemoteXY lib version 4.1.4 compiler waring about deprecated

Thank you. We will check it.

3

Re: RemoteXY lib version 4.1.4 compiler waring about deprecated

Flip Opperman wrote:

I get the following compiler waring when programming an ESP32 board and using BLE to connect to my phone. Code still works, but when will issue resulting in warnings be corrected?
Warning is:
libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:74:14: warning: 'BLE2902' is deprecated: NimBLE does not support manually adding 2902 descriptors as they are automatically added when the characteristic has notifications or indications enabled. Get/Set the notifications/indications properties of the characteristic instead. This class will be removed in a future version. [-Wdeprecated-declarations]
   74 |     BLE2902 *ble2902 = new BLE2902();

Could you please tell me what board you're using? What version of ESP32 do you have? I tested it on Espressif Systems version 3.3.1. I don't have this message.
Could you share the full compiler output?

4 (edited by Flip Opperman 2025-10-08 19:50:12)

Re: RemoteXY lib version 4.1.4 compiler waring about deprecated

The board I am using in Arduino IDE is Nologo ESP32C3 Super Mini
The physical board is an ESP32 C3 Super mini v1601

The complete compiler output is:
In file included from e:\OneDrive\Data\01 Elektronies\Projects\libraries\RemoteXY\src/RemoteXY.h:121,
                 from E:\OneDrive\Data\01 Elektronies\Projects\NationalLuna Yskasbheerder\Sagteware\YskasBeheerder\YskasBeheerder.ino:36:
e:\OneDrive\Data\01 Elektronies\Projects\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h: In constructor 'CRemoteXYStream_BLEDevice::CRemoteXYStream_BLEDevice(const char*)':
e:\OneDrive\Data\01 Elektronies\Projects\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:74:14: warning: 'BLE2902' is deprecated: NimBLE does not support manually adding 2902 descriptors as they are automatically added when the characteristic has notifications or indications enabled. Get/Set the notifications/indications properties of the characteristic instead. This class will be removed in a future version. [-Wdeprecated-declarations]
   74 |     BLE2902 *ble2902 = new BLE2902();
      |              ^~~~~~~
In file included from e:\OneDrive\Data\01 Elektronies\Projects\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:7:
C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\libraries\BLE\src/BLE2902.h:46:53: note: declared here
   46 | This class will be removed in a future version.")]] BLE2902 : public BLEDescriptor {
      |                                                     ^~~~~~~
e:\OneDrive\Data\01 Elektronies\Projects\libraries\RemoteXY\src/RemoteXYStream_BLEDevice.h:74:28: warning: 'BLE2902' is deprecated: NimBLE does not support manually adding 2902 descriptors as they are automatically added when the characteristic has notifications or indications enabled. Get/Set the notifications/indications properties of the characteristic instead. This class will be removed in a future version. [-Wdeprecated-declarations]
   74 |     BLE2902 *ble2902 = new BLE2902();
      |                            ^~~~~~~
C:\Users\User\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.0\libraries\BLE\src/BLE2902.h:46:53: note: declared here
   46 | This class will be removed in a future version.")]] BLE2902 : public BLEDescriptor {
      |                                                     ^~~~~~~
Sketch uses 659858 bytes (50%) of program storage space. Maximum is 1310720 bytes.
Global variables use 23032 bytes (7%) of dynamic memory, leaving 304648 bytes for local variables. Maximum is 327680 bytes.

5

Re: RemoteXY lib version 4.1.4 compiler waring about deprecated

Thank you. This will be fixed in the next version of the library.

6

Re: RemoteXY lib version 4.1.4 compiler waring about deprecated

Thanks, I am looking forward to the release of the next library version

7

Re: RemoteXY lib version 4.1.4 compiler waring about deprecated

Thanks, version 4.1.5 fixed the compiler warning issue for me.