mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Fix wrong JSON sensor message
This commit is contained in:
parent
c4f6a359a7
commit
894950ca4e
@ -609,7 +609,9 @@ const char HTTP_MIBLE_FLORA_DATA[] PROGMEM =
|
|||||||
|
|
||||||
void MIBLEShow(bool json)
|
void MIBLEShow(bool json)
|
||||||
{
|
{
|
||||||
if (json && MIBLEsensors.size()) {
|
if (json) {
|
||||||
|
if (!MIBLEsensors.size()) { return; }
|
||||||
|
|
||||||
for (uint32_t i = 0; i < MIBLEsensors.size(); i++) {
|
for (uint32_t i = 0; i < MIBLEsensors.size(); i++) {
|
||||||
char slave[33];
|
char slave[33];
|
||||||
switch(MIBLEsensors.at(i).type){
|
switch(MIBLEsensors.at(i).type){
|
||||||
@ -669,6 +671,9 @@ void MIBLEShow(bool json)
|
|||||||
#ifdef USE_WEBSERVER
|
#ifdef USE_WEBSERVER
|
||||||
} else {
|
} else {
|
||||||
WSContentSend_PD(HTTP_NRF24, NRF24type, NRF24.chipType);
|
WSContentSend_PD(HTTP_NRF24, NRF24type, NRF24.chipType);
|
||||||
|
|
||||||
|
if (!MIBLEsensors.size()) { return; }
|
||||||
|
|
||||||
for (uint32_t i = 0; i < MIBLEsensors.size(); i++) {
|
for (uint32_t i = 0; i < MIBLEsensors.size(); i++) {
|
||||||
switch(MIBLEsensors.at(i).type){
|
switch(MIBLEsensors.at(i).type){
|
||||||
case 1:
|
case 1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user