the char.writeValue() function frustrates me a bit.
Anyone having experience how to fix it? My code compiles and everything works fine but the IMU9DofPackage characteristic is never updated and also the writeValue() returns 0;
For some reason the BLECharacteristic definition has to be global inside the .ino. I do not quite understand why it would be different than global in my header file. Anyway that solved my problem. I could leave all the other definitions/functions and settings in my BLE.cpp/.h
So overall, be careful with exporting the ArduinoBLE functionalities in other files!