Skip to content

Commit

Permalink
refactoring and cleaning of dtu inteface
Browse files Browse the repository at this point in the history
  • Loading branch information
ohAnd committed Mar 3, 2024
1 parent b3749ad commit 646f004
Show file tree
Hide file tree
Showing 6 changed files with 621 additions and 1,190 deletions.
23 changes: 14 additions & 9 deletions include/dtuInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,19 @@ extern CRC16 crc;
void initializeCRC();
float calcValue(int32_t value, int32_t divider = 10);
String getTimeStringByTimestamp(unsigned long timestamp);
// boolean preventCloudErrorTask(unsigned long localTimeSecond);
// void readRespAppGetHistPower(WiFiClient *client);
// void writeReqAppGetHistPower(WiFiClient *client, unsigned long localTimeSecond);
// void readRespRealDataNew(WiFiClient *client);
// void writeReqRealDataNew(WiFiClient *client, unsigned long localTimeSecond);
// void readRespGetConfig(WiFiClient *client);
// void writeReqGetConfig(WiFiClient *client, unsigned long localTimeSecond);
// void readRespCommand(WiFiClient *client);
// void writeReqCommand(WiFiClient *client, unsigned long localTimeSecond);
boolean preventCloudErrorTask(unsigned long locTimeSec);

void readRespAppGetHistPower(WiFiClient *localDtuClient);
void writeReqAppGetHistPower(WiFiClient *localDtuClient, unsigned long locTimeSec);

void readRespRealDataNew(WiFiClient *localDtuClient);
void writeReqRealDataNew(WiFiClient *localDtuClient, unsigned long locTimeSec);

void readRespGetConfig(WiFiClient *localDtuClient);
void writeReqGetConfig(WiFiClient *localDtuClient, unsigned long locTimeSec);

void readRespCommand(WiFiClient *localDtuClient);
void writeReqCommand(WiFiClient *localDtuClient, uint8_t setPercent, unsigned long locTimeSec);


#endif // DTUINTERFACE_H
2 changes: 1 addition & 1 deletion include/index_html.h
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ const char INDEX_HTML[] PROGMEM = R"=====(
<b id="gwNTPtime" class="panelValueSmall">00:00:00</b>
</div>
<div class="panelValueBoxDetail">
<small class="panelHead">DTU connect</small>
<small class="panelHead">DTU</small>
<b id="dtu_connect_state" class="panelValueSmall valueText"> offline </b>
</div>
<div class="panelValueBoxDetail">
Expand Down
4 changes: 2 additions & 2 deletions include/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define VERSION "1.2.0"
#define BUILDTIME "03.03.2024 - 12:21:17"
#define BUILDTIMESTAMP "1709464877"
#define BUILDTIME "03.03.2024 - 20:34:09"
#define BUILDTIMESTAMP "1709494449"
2 changes: 1 addition & 1 deletion include/version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.2.0",
"versiondate": "03.03.2024 - 12:21:17",
"versiondate": "03.03.2024 - 20:34:09",
"linksnapshot": "https://github.com/ohAnd/dtuGateway/releases/download/snapshot/dtuGateway_snapshot_1.2.0.bin",
"link": "https://github.com/ohAnd/dtuGateway//releases/latest/download/dtuGateway_release_1.2.0.bin"
}
Loading

0 comments on commit 646f004

Please sign in to comment.