Skip to content

Commit

Permalink
Add version info
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Aug 10, 2024
1 parent 9ad1cbb commit 1038173
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
5 changes: 2 additions & 3 deletions include/YaSolR.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
#pragma once

#include <AsyncUDP.h>
#include <CRC.h>
#include <ESPAsyncWebServer.h>
#include <FastCRC32.h>
#include <HardwareSerial.h>
#include <LittleFS.h>

#include <MycilaAppInfo.h>
#include <MycilaCircularBuffer.h>
#include <MycilaConfig.h>
#include <MycilaDS18.h>
#include <MycilaDimmer.h>
Expand All @@ -23,7 +23,6 @@
#include <MycilaLogger.h>
#include <MycilaMQTT.h>
#include <MycilaNTP.h>
#include <MycilaPID.h>
#include <MycilaPulseAnalyzer.h>
#include <MycilaPZEM004Tv3.h>
#include <MycilaRelay.h>
Expand All @@ -33,8 +32,8 @@
#include <MycilaSystem.h>
#include <MycilaTaskManager.h>
#include <MycilaTaskMonitor.h>
#include <MycilaTime.h>
#include <MycilaTrafficLight.h>
#include <MycilaUtilities.h>
#include <MycilaZCD.h>

#ifdef APP_MODEL_TRIAL
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ lib_deps =
mathieucarbou/MycilaTaskManager @ 3.1.2
mathieucarbou/MycilaTaskMonitor @ 3.0.1
mathieucarbou/MycilaTrafficLight @ 1.0.0
mathieucarbou/MycilaUtilities @ 1.3.6
mathieucarbou/MycilaUtilities @ 1.3.7
build_flags =
; Stack sizes
-D ARDUINO_LOOP_STACK_SIZE=4096
Expand Down
23 changes: 23 additions & 0 deletions src/init/REST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,29 @@ Mycila::Task initRestApiTask("Init REST API", [](void* params) {
// config
config.toJson(root["config"].to<JsonObject>());

// libs versions
root["library"]["ArduinoJson"] = ARDUINOJSON_VERSION;
root["library"]["AsyncTCP"] = ASYNCTCP_VERSION;
root["library"]["CRC"] = CRC_LIB_VERSION;
root["library"]["ESPAsyncWebServer"] = ASYNCWEBSERVER_VERSION;
root["library"]["MycilaConfig"] = MYCILA_CONFIG_VERSION;
root["library"]["MycilaDS18"] = MYCILA_DS18_VERSION;
root["library"]["MycilaEasyDisplay"] = MYCILA_EASY_DISPLAY_VERSION;
root["library"]["MycilaESPConnect"] = ESPCONNECT_VERSION;
root["library"]["MycilaHADiscovery"] = MYCILA_HA_VERSION;
root["library"]["MycilaJSY"] = MYCILA_JSY_VERSION;
root["library"]["MycilaLogger"] = MYCILA_LOGGER_VERSION;
root["library"]["MycilaMQTT"] = MYCILA_MQTT_VERSION;
root["library"]["MycilaNTP"] = MYCILA_NTP_VERSION;
root["library"]["MycilaPulseAnalyzer"] = MYCILA_PULSE_VERSION;
root["library"]["MycilaPZEM004Tv3"] = MYCILA_PZEM_VERSION;
root["library"]["MycilaRelay"] = MYCILA_RELAY_VERSION;
root["library"]["MycilaSystem"] = MYCILA_SYSTEM_VERSION;
root["library"]["MycilaTaskManager"] = MYCILA_TASK_MANAGER_VERSION;
root["library"]["MycilaTaskMonitor"] = MYCILA_TASK_MONITOR_VERSION;
root["library"]["MycilaTrafficLight"] = MYCILA_TRAFFIC_LIGHT_VERSION;
root["library"]["MycilaUtilities"] = MYCILA_UTILITIES_VERSION;

response->setLength();
request->send(response);
})
Expand Down

0 comments on commit 1038173

Please sign in to comment.