diff --git a/README.md b/README.md index 3ef631935..66f51b6b3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ zypper install -y --type pattern devel_basis zypper install -y git rsync wget cmake doxygen graphviz clang-tools cppcheck boost-devel libboost_filesystem-devel libboost_log-devel libboost_program_options-devel libboost_system-devel libboost_thread-devel java-17-openjdk java-17-openjdk-devel nodejs nodejs-devel npm python3-pip gcc-c++ libopenssl-devel sqlite3-devel libpcap-devel libevent-devel libcap-devel ``` -#### Fedora 37, 38 & 39 +#### Fedora 38, 39 & 40 ```bash sudo dnf update sudo dnf install make automake gcc gcc-c++ kernel-devel python3-pip python3-devel git rsync wget cmake doxygen graphviz clang-tools-extra cppcheck java-17-openjdk java-17-openjdk-devel boost-devel nodejs nodejs-devel npm openssl openssl-devel libsqlite3x-devel curl rfkill libpcap-devel libevent-devel libcap-devel diff --git a/modules/API/API.cpp b/modules/API/API.cpp index 19d94c32e..2c1a7fea9 100644 --- a/modules/API/API.cpp +++ b/modules/API/API.cpp @@ -540,7 +540,9 @@ void API::init() { while (this->running) { json connectors_array = connectors; this->mqtt.publish(var_connectors, connectors_array.dump()); - this->mqtt.publish(var_info, this->charger_information.dump()); + if (not this->charger_information.is_null()) { + this->mqtt.publish(var_info, this->charger_information.dump()); + } { std::scoped_lock lock(ocpp_data_mutex); this->mqtt.publish(var_ocpp_connection_status, this->ocpp_connection_status);