ZeroCode AI ยท Community
Rahul
1 device by Rahul, built with ESP ZeroCode AI and shared for anyone to flash.
Published
- Heart Rate MonitorA simple BLE heart rate monitor example, that creates a GATT server demonstrating standard Heart Rate measurement service. This example creates GATT server demonstrating standard Heart Rate measurement service to client when the notifications are enabled. It should use ESP32's Bluetooth controller and NimBLE stack based BLE host. It should first advertise with legacy advertising data which includes the name as "NimBLE HR". It should register a gatt service, where Heart Rate service ( with UUID 0x180D ) is the primary service. It should have 2 characteristics. First characteristic should be Heart-rate measurement (with UUID 0x2A37) . This should have a notify flag enabled where remote can be sent notifications if registered. Second characteristic should be Body Sensor location (with UUID 0x2A38) with read permission. Remote client can subsribe for notification. The heart rate example can simulate a heart beat (say every 2 seconds) and send it to connected client via notifications. After every 100 seconds, the counter resets. After every 120 seconds, it gives a count of notification sent as a feedback
Built with ESP ZeroCode AI โ describe a device, get production firmware.