Bluetooth Device Setup

Configure your Smart Kidney Monitoring System for BLE wireless streaming

GATT Service Configuration

The dashboard uses the following BLE specifications to connect to the hardware:

Device Name Advertise Filter
RenalSense-Monitor
Service UUID (GATT)
de991000-f9a1-43e8-abdf-14022c45aa3c
Sensor Characteristic UUID
de991001-f9a1-43e8-abdf-14022c45aa3c

ESP32 BLE Sketch Code

Flash your ESP32 with this service setup to start streaming data:

#include <BLEDevice.h>
#include <BLEServer.h>
#include <BLE2902.h>

#define SERVICE_UUID        "de991000-f9a1-43e8-abdf-14022c45aa3c"
#define CHARACTERISTIC_UUID "de991001-f9a1-43e8-abdf-14022c45aa3c"

BLECharacteristic* pCharacteristic;

void setup() {
  BLEDevice::init("RenalSense-Monitor");
  BLEServer* pServer = BLEDevice::createServer();
  BLEService* pService = pServer->createService(SERVICE_UUID);
  pCharacteristic = pService->createCharacteristic(
                      CHARACTERISTIC_UUID,
                      BLECharacteristic::PROPERTY_NOTIFY
                    );
  pCharacteristic->addDescriptor(new BLE2902());
  pService->start();
  pServer->getAdvertising()->start();
}
            

Browser Requirements

Quick Pairing Steps

1. Turn on your ESP32 monitor device and make sure Bluetooth is enabled on your computer or phone.

2. Go to the Renal Sense page on this dashboard.

3. Toggle the connection mode to Bluetooth.

4. Click Connect BLE Device and pair with RenalSense-Monitor in the browser prompt.