mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
parent
04ec0832fc
commit
b2d2226d5d
@ -584,13 +584,17 @@ bool MINRFhandleBeacon(scan_entry_t * entry, uint32_t offset){
|
||||
* @brief increase beacon timer every second and process the result
|
||||
*
|
||||
*/
|
||||
void MINRFbeaconCounter(void){
|
||||
if(MINRF.beacon.active) {
|
||||
void MINRFbeaconCounter(void) {
|
||||
if (MINRF.beacon.active) {
|
||||
MINRF.beacon.time++;
|
||||
/*
|
||||
char stemp[20];
|
||||
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"Beacon\": %u}}"),D_CMND_NRF, MINRF.beacon.time);
|
||||
AddLog_P2(LOG_LEVEL_DEBUG, stemp);
|
||||
RulesProcessEvent(stemp);
|
||||
*/
|
||||
Response_P(PSTR("{%s:{\"Beacon\":%u}}"), D_CMND_NRF, MINRF.beacon.time);
|
||||
XdrvRulesProcess();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -977,11 +977,15 @@ void HM10_TaskEvery100ms(){
|
||||
}
|
||||
}
|
||||
|
||||
void HM10StatusInfo(){
|
||||
void HM10StatusInfo() {
|
||||
/*
|
||||
char stemp[20];
|
||||
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"found\": %u}}"),D_CMND_HM10, MIBLEsensors.size());
|
||||
AddLog_P2(LOG_LEVEL_INFO, stemp);
|
||||
RulesProcessEvent(stemp);
|
||||
*/
|
||||
Response_P(PSTR("{%s:{\"found\":%u}}"), D_CMND_HM10, MIBLEsensors.size());
|
||||
XdrvRulesProcess();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user