{"version":"1.0","type":"rich","title":"Gist c7f98f08223a6cc4c0b042ca34884c90","description":"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().","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-c7f98f08223a6cc4c0b042ca34884c90?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}