30 lines
601 B
C
30 lines
601 B
C
#pragma once
|
|
#include "config.h"
|
|
#include <bluefruit.h>
|
|
|
|
#ifdef FEATURE_CONFIG_SERVICE
|
|
|
|
extern BLEService cfgService;
|
|
extern BLECharacteristic cfgBlob;
|
|
extern BLECharacteristic cfgCommand;
|
|
#ifdef FEATURE_TELEMETRY
|
|
extern BLECharacteristic cfgTelemetry;
|
|
#endif
|
|
#ifdef FEATURE_IMU_STREAM
|
|
extern BLECharacteristic cfgImuStream;
|
|
#endif
|
|
|
|
void pushConfigBlob();
|
|
void setupConfigService();
|
|
|
|
#ifdef FEATURE_TELEMETRY
|
|
void pushTelemetry(unsigned long now);
|
|
#endif
|
|
|
|
#endif // FEATURE_CONFIG_SERVICE
|
|
|
|
void applyChargeMode(ChargeMode mode);
|
|
void loadConfig();
|
|
void saveConfig();
|
|
void factoryReset();
|