My Project
Loading...
Searching...
No Matches
SBrickHub.h
Go to the documentation of this file.
1#pragma once
2
3#include <Arduino.h>
4
5#include "BLEHub.h"
6
7#define SBRICK_REMOTECONTROL_SERVICE_UUID "4dc591b0-857c-41de-b5f1-15abda665b0c"
8#define SBRICK_REMOTECONTROL_CHARACTERISTIC_UUID "02b8cbcc-0e25-4bda-8790-a15f53e6010f"
9
10class SBrickHub : public BLEHub
11{
12 public:
14 bool SetWatchdogTimeout(const uint8_t watchdogTimeOutInTensOfSeconds);
15 void DriveTaskLoop();
16 int16_t MapPwrPercToRaw(int pwrPerc);
17
25 void NotifyCallback(NimBLERemoteCharacteristic *pBLERemoteCharacteristic, uint8_t *pData, size_t length, bool isNotify);
26};
Definition BLEHubConfiguration.h:46
Definition BLEHub.h:56
Definition SBrickHub.h:11
void DriveTaskLoop()
Definition SBrickHub.cpp:55
SBrickHub(BLEHubConfiguration *config)
Definition SBrickHub.cpp:19
int16_t MapPwrPercToRaw(int pwrPerc)
Definition SBrickHub.cpp:121
bool SetWatchdogTimeout(const uint8_t watchdogTimeOutInTensOfSeconds)
Definition SBrickHub.cpp:24
void NotifyCallback(NimBLERemoteCharacteristic *pBLERemoteCharacteristic, uint8_t *pData, size_t length, bool isNotify)
Callback function for notifications of a specific characteristic.
Definition SBrickHub.cpp:127