4#ifndef SRC_SUPLA_DEVICE_REGISTER_DEVICE_H_
5#define SRC_SUPLA_DEVICE_REGISTER_DEVICE_H_
7#include <supla-common/proto.h>
12namespace RegisterDevice {
26bool isServerNameEmpty();
30const char *getAuthKey();
31const char *getSoftVer();
33void fillGUIDText(
char text[37]);
35void setGUID(
const char *GUID);
36void setAuthKey(
const char *AuthKey);
37void setSoftVer(
const char *SoftVer);
38void setName(
const char *Name);
40void setEmail(
const char *email);
41void setServerName(
const char *server);
43const char *getEmail();
44const char *getServerName();
46bool isSuplaPublicServerConfigured();
47bool isSleepingDeviceEnabled();
48bool isRemoteDeviceConfigEnabled();
49bool isPairingSubdeviceEnabled();
50bool isAutomaticFirmwareUpdateEnabled();
51bool isSetCfgModePasswordEnabled();
53void setManufacturerId(int16_t mfrId);
54void setProductId(int16_t productId);
56int16_t getManufacturerId();
57int16_t getProductId();
59void addFlags(int32_t newFlags);
60void removeFlags(int32_t removedFlags);
63int getNextFreeChannelNumber();
64bool isChannelNumberFree(
int channelNumber);
65int getFreeChannelCount();
66bool hasFreeChannelCount(uint8_t requiredCount);
67void addChannel(
int channelNumber);
68void removeChannel(
int channelNumber);
70int getMaxChannelNumberUsed();
72void generateHttpAgent(
char *buffer,
int size);
75void resetToDefaults();
76int32_t getChannelFunctionList(
int channelNumber);
77int32_t getChannelDefaultFunction(
int channelNumber);
78int32_t getChannelType(
int channelNumber);
79int getChannelNumber(
int index);
80int8_t *getChannelValuePtr(
int channelNumber);
81uint64_t getChannelFlags(
int channelNumber);