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,8 +609,10 @@ const char HTTP_MIBLE_FLORA_DATA[] PROGMEM =
|
|||||||
|
|
||||||
void MIBLEShow(bool json)
|
void MIBLEShow(bool json)
|
||||||
{
|
{
|
||||||
if (json && MIBLEsensors.size()) {
|
if (json) {
|
||||||
for(uint32_t i=0; i<MIBLEsensors.size(); i++){
|
if (!MIBLEsensors.size()) { return; }
|
||||||
|
|
||||||
|
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){
|
||||||
case 1:
|
case 1:
|
||||||
@ -669,7 +671,10 @@ 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);
|
||||||
for(uint32_t i=0; i<MIBLEsensors.size(); i++){
|
|
||||||
|
if (!MIBLEsensors.size()) { return; }
|
||||||
|
|
||||||
|
for (uint32_t i = 0; i < MIBLEsensors.size(); i++) {
|
||||||
switch(MIBLEsensors.at(i).type){
|
switch(MIBLEsensors.at(i).type){
|
||||||
case 1:
|
case 1:
|
||||||
if(MIBLEsensors.at(i).showedUp < 3){
|
if(MIBLEsensors.at(i).showedUp < 3){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user