B4R Question Bluetooth (BLE) data transfer


New Member
Hello everybody! I have a problem with bluetooth data transfer. I found project of smart glove on instructables made by Matlek. But I want to receive gesture "Stop" on ESP32 by getting high signal on pin D7 on Nano 33 BLE Sense. I asked about this the author of project, but he don't know how to do that...

The author allowed to publish the Arduino code on github.

This is original code for Nano 33 BLE Sense:


This is original code for ESP32:


First of all, I connected button for simulating of getting high signal on pin D7 on Nano 33 BLE Sense.
int BUTTON_PIN = 7;

int LED = 24;

void setup() {
  pinMode(LED, OUTPUT);

void loop() {
  if (digitalRead(BUTTON_PIN) == HIGH) {
    digitalWrite(LED, LOW);
    Serial.println("Button pressed");

  else {
    digitalWrite(LED, HIGH);
    Serial.println("Button released");
All is working good and I see information in COM port:

I made branche "Experiment" on github with changes in original code:


You can see differences in code for Nano 33 BLE Sense here (ESP32 code is unmodified):


As you can see, I commented out lines to transmitting data for ESP32 (//ledCharacteristic.writeValue) at first time.

But I can't see any data in COM port, while I'm pressing on button. So, what I'm doing wrong? Please, give me a hint!