Bluetooth 5 CW Keyer.


Power not shown
Arduino Files: https://github.com/bobh/nimBLE-discrete-xfer/tree/main/nimbleDiscrete
Looks like things changed in July and I wrote the code in January.
You might try this;
OLD Way
/** Handler class for descriptor actions */
class DescriptorCallbacks : public NimBLEDescriptorCallbacks {
void onWrite(NimBLEDescriptor* pDescriptor) {
std::string dscVal((char*)pDescriptor->getValue(), pDescriptor->getLength());
Serial.print(“Descriptor witten value:”);
Serial.println(dscVal.c_str());
};
NEW Way
/** Handler class for descriptor actions */
class DescriptorCallbacks : public NimBLEDescriptorCallbacks {
void onWrite(NimBLEDescriptor* pDescriptor) {
std::string dscVal = pDescriptor->getValue();
Serial.print(“Descriptor witten value:”);
Serial.println(dscVal.c_str());
};
This is the new way of doing things:
https://github.com/h2zero/NimBLE-Arduino/tree/release/1.4/examples
I started with NimBLE_Server and NimBLE_Client directories and just added some hardware interface,
The BLEserver compiles with that change but you should examine for more differences. I haven’t checked function as I’m not sure where the hardware is anymore.