Skip to content

Commit

Permalink
Merge pull request #765 from visualapproach/development_v4
Browse files Browse the repository at this point in the history
Development v4
  • Loading branch information
visualapproach authored Jul 18, 2024
2 parents c2df36f + 4aad75e commit e8bb02b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion Code/data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,8 @@ <h2>Totals</h2>
var obj = {};
obj["CMD"] = cmdMap[cmd];
obj["VALUE"] = value;
obj["XTIME"] = Math.floor(Date.now() / 1000);
// obj["XTIME"] = Math.floor(Date.now() / 1000);
obj["XTIME"] = 0;
obj["INTERVAL"] = 0;
obj["TXT"] = "";
var json = JSON.stringify(obj);
Expand Down
2 changes: 1 addition & 1 deletion Code/lib/BWC_unified/FW_VERSION.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define FW_VERSION "2024-07-15-2330"
#define FW_VERSION "2024-07-18-0900"
10 changes: 6 additions & 4 deletions Code/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ void gotIP()
BWC_LOG_P(PSTR("Soft AP > closed\n"), 0);
BWC_LOG_P(PSTR("Connected as station with localIP: %s\n"), WiFi.localIP().toString().c_str());
startNTP();
startOTA();
startMqtt();
// startOTA();
// startMqtt();
BWC_LOG_P(PSTR("end of gotip millis = %d\n"), millis());
bwc->print(WiFi.localIP().toString());
if(mqtt_info->useMqtt) enableMqtt = true;
Expand Down Expand Up @@ -91,6 +91,8 @@ void setup()
if(wifi_info.enableWmApFallback) startSoftAp(); // not blocking anymore so no use case should exist for this to be turned off.
startHttpServer();
startWebSocket();
startOTA();
startMqtt();
if(bwc->hasTempSensor)
{
HeapSelectIram ephemeral;
Expand Down Expand Up @@ -120,6 +122,8 @@ void loop()
server->handleClient();
// Serial.print(".");
}
// listen for OTA events
ArduinoOTA.handle();
// web socket
if (newData || sendWSFlag)
{
Expand All @@ -130,8 +134,6 @@ void loop()
/* MQTT, OTA & NTP is not relevant in softAP mode */
if (WiFi.status() == WL_CONNECTED)
{
// listen for OTA events
ArduinoOTA.handle();

// MQTT
if (enableMqtt && mqttClient->loop())
Expand Down
Binary file modified bwc-manual.pdf
Binary file not shown.

0 comments on commit e8bb02b

Please sign in to comment.