mirror of
https://github.com/arendst/Tasmota.git
synced 2025-04-24 14:57:16 +00:00
Merge pull request #11276 from s-hadinger/zigbee_fix_zbscan
Fix ZbScan json output #11264
This commit is contained in:
commit
e7cbd4f001
@ -190,7 +190,7 @@ int32_t EZSP_EnergyScanComplete(int32_t res, const SBuffer &buf) {
|
||||
// Dump energu scan results
|
||||
//
|
||||
void EnergyScanResults(void) {
|
||||
Response_P(PSTR("{\"" D_JSON_ZIGBEE_SCAN "\":["));
|
||||
Response_P(PSTR("{\"" D_JSON_ZIGBEE_SCAN "\":{"));
|
||||
for (uint32_t i = 0; i < USE_ZIGBEE_CHANNEL_COUNT; i++) {
|
||||
int8_t energy = zigbee.energy[i];
|
||||
|
||||
@ -210,7 +210,7 @@ void EnergyScanResults(void) {
|
||||
|
||||
AddLog(LOG_LEVEL_INFO, PSTR(D_LOG_ZIGBEE "Channel %2d: %s"), i + USE_ZIGBEE_CHANNEL_MIN, bar_str);
|
||||
}
|
||||
ResponseAppend_P(PSTR("]}"));
|
||||
ResponseAppend_P(PSTR("}}"));
|
||||
MqttPublishPrefixTopicRulesProcess_P(RESULT_OR_TELE, PSTR(D_JSON_ZIGBEE_STATE));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user