diff --git a/tasmota/xdrv_23_zigbee_A_impl.ino b/tasmota/xdrv_23_zigbee_A_impl.ino index 11ac8e5ad..c59daf114 100644 --- a/tasmota/xdrv_23_zigbee_A_impl.ino +++ b/tasmota/xdrv_23_zigbee_A_impl.ino @@ -1082,10 +1082,12 @@ void ZigbeeShow(bool json) if (!zigbee_num) { return; } // Calculate fixed column width for best visual result (Theos opinion) - uint8_t px_batt = (strlen(D_BATT) + 5 + 1) * 10; // Batt 100% = 100px - uint8_t px_lqi = (strlen(D_LQI) + 4) * 10; // LQI 254 = 70px + const uint8_t px_batt = (strlen(D_BATT) + 5 + 1) * 10; // Batt 100% = 90px + 10px column separator + const uint8_t px_lqi = (strlen(D_LQI) + 4) * 10; // LQI 254 = 70px WSContentSend_P(PSTR("{t}")); // Terminate current two column table and open new table +// WSContentSend_P(PSTR("{t}")); // Insert multi column table + // WSContentSend_PD(PSTR("{s}Device 0x1234" D_BATT " 100%%" D_LQI " 254{e}")); // WSContentSend_PD(PSTR("{s}Device 0x1234" D_BATT " 100%%" D_LQI " 254{e}")); // WSContentSend_PD(PSTR("{s}Device 0x1234" D_BATT " 100%%" D_LQI " 254{e}"), px_batt, px_lqi); @@ -1114,15 +1116,16 @@ void ZigbeeShow(bool json) snprintf_P(sbatt, sizeof(sbatt), PSTR(D_BATT " %d%%"), bp); } - if (!i) { + if (!i) { // First row needs style info WSContentSend_PD(PSTR("{s}%s%s" D_LQI " %s{e}"), name, px_batt, sbatt, px_lqi, slqi); - } else { + } else { // Following rows don't need style info so reducing ajax package WSContentSend_PD(PSTR("{s}%s{m}%s" D_LQI " %s{e}"), name, sbatt, slqi); } } WSContentSend_P(PSTR("{t}")); // Terminate current multi column table and open new table +// WSContentSend_P(PSTR("{e}")); // Terminate multi column table #endif } }