As basis I use the LED sketch:
Peripheral (LED) is Nano 33 IoT;
Central is Nano RP2040;
The devices connect successfully, and data is sent.
Nano 33 IoT has also a rotary encoder attached.
Now when the peripheral device ON/OFF receives, I want in case of ON, the central device to be notified about the status of rotary encoder (0x01 - 0xFF).
Until now I found no way to do this.
There are a lot of for ESP32 Controller, but they use eg. pCharacteristic->notify();
But for my devices the function notify() is not available.
And z.B. switchCharacteristic_TX.writeValue((byte)9) doesn’t do anything.
Do you have any suggestions to accomplish the task.