mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
cleanup, typos, formatting
This commit is contained in:
@@ -73,7 +73,8 @@ const dnsServers = ({ dns_ip_1, dns_ip_2 }: NetworkStatusType) => {
|
|||||||
const IPs = (status: NetworkStatusType) => {
|
const IPs = (status: NetworkStatusType) => {
|
||||||
if (
|
if (
|
||||||
!status.local_ipv6 ||
|
!status.local_ipv6 ||
|
||||||
status.local_ipv6 === '0000:0000:0000:0000:0000:0000:0000:0000'
|
status.local_ipv6 === '0000:0000:0000:0000:0000:0000:0000:0000' ||
|
||||||
|
status.local_ipv6 === '::'
|
||||||
) {
|
) {
|
||||||
return status.local_ip;
|
return status.local_ip;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,6 @@
|
|||||||
#include "IPUtils.h"
|
#include "IPUtils.h"
|
||||||
#include "SecurityManager.h"
|
#include "SecurityManager.h"
|
||||||
|
|
||||||
#define MAX_NETWORK_STATUS_SIZE 1024
|
|
||||||
#define NETWORK_STATUS_SERVICE_PATH "/rest/networkStatus"
|
#define NETWORK_STATUS_SERVICE_PATH "/rest/networkStatus"
|
||||||
|
|
||||||
class NetworkStatus {
|
class NetworkStatus {
|
||||||
|
|||||||
@@ -2030,7 +2030,7 @@ int EMSdevice::get_modbus_value(uint8_t tag, const std::string & shortname, std:
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool EMSdevice::modbus_value_to_json(uint8_t tag, const std::string & shortname, const std::vector<uint8_t> & modbus_data, JsonObject & jsonValue) {
|
bool EMSdevice::modbus_value_to_json(uint8_t tag, const std::string & shortname, const std::vector<uint8_t> & modbus_data, JsonObject jsonValue) {
|
||||||
//Serial.printf("modbus_value_to_json(%d,%s,[%d bytes])\n", tag, shortname.c_str(), modbus_data.size());
|
//Serial.printf("modbus_value_to_json(%d,%s,[%d bytes])\n", tag, shortname.c_str(), modbus_data.size());
|
||||||
|
|
||||||
// find device value by shortname
|
// find device value by shortname
|
||||||
|
|||||||
@@ -203,7 +203,7 @@ class EMSdevice {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int get_modbus_value(uint8_t tag, const std::string & shortname, std::vector<uint16_t> & result);
|
int get_modbus_value(uint8_t tag, const std::string & shortname, std::vector<uint16_t> & result);
|
||||||
bool modbus_value_to_json(uint8_t tag, const std::string & shortname, const std::vector<uint8_t> & modbus_data, JsonObject & jsonValue);
|
bool modbus_value_to_json(uint8_t tag, const std::string & shortname, const std::vector<uint8_t> & modbus_data, JsonObject jsonValue);
|
||||||
|
|
||||||
const char * brand_to_char();
|
const char * brand_to_char();
|
||||||
const std::string to_string();
|
const std::string to_string();
|
||||||
|
|||||||
Reference in New Issue
Block a user