Bluetooth 5 CW Keyer

Bluetooth 5 CW Keyer.

Design Information: server is at the radio, client is at the paddles

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s