Gist c7f98f08223a6cc4c0b042ca34884c90
✓ Published0🌍 Public
Aalteist
Last edited May 1, 2020
Created on May 1, 2020
This example demonstrates how an ESP32 microcontroller detects button presses on an iTAG BLE device and triggers a sound response. The code uses the BLEDevice library to scan for the iTAG’s advertised address, connect to its FFF0 service, and register a notify callback on the FFF1 characteristic to monitor button state. When pressed, the callback increments a counter and sets a timer, while a second characteristic (FFF2) is prepared for sending sound commands. The sketch also includes serial logging and an LED indicator, with the connection logic managing reconnection via ESP.restart().
AI-generated description