Fix config
This commit is contained in:
Submodule lib/nuki_ble updated: 8798980767...a7673b41f2
@@ -5,7 +5,7 @@
|
||||
#define NUKI_HUB_VERSION "9.07"
|
||||
#define NUKI_HUB_VERSION_INT (uint32_t)907
|
||||
#define NUKI_HUB_BUILD "unknownbuildnr"
|
||||
#define NUKI_HUB_DATE "2025-01-05"
|
||||
#define NUKI_HUB_DATE "2025-01-06"
|
||||
|
||||
#define GITHUB_LATEST_RELEASE_URL (char*)"https://github.com/technyon/nuki_hub/releases/latest"
|
||||
#define GITHUB_OTA_MANIFEST_URL (char*)"https://raw.githubusercontent.com/technyon/nuki_hub/binary/ota/manifest.json"
|
||||
|
||||
@@ -829,6 +829,12 @@ void NukiNetworkLock::publishConfig(const NukiLock::Config &config)
|
||||
memset(str, 0, sizeof(str));
|
||||
_network->timeZoneIdToString(config.timeZoneId, str);
|
||||
json["timeZone"] = str;
|
||||
json["deviceType"] = config.deviceType;
|
||||
json["channel"] = config.network;
|
||||
json["wifiCapable"] = config.network & 1;
|
||||
json["threadCapable"] = (((unsigned int)config.network & 2) != 0 ? 1 : 0);
|
||||
json["matterStatus"] = config.matterStatus;
|
||||
json["productVariant"] = config.productVariant;
|
||||
|
||||
serializeJson(json, _buffer, _bufferSize);
|
||||
_nukiPublisher->publishString(mqtt_topic_config_basic_json, _buffer, true);
|
||||
|
||||
Reference in New Issue
Block a user