mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-26 12:16:33 +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
|
* @brief increase beacon timer every second and process the result
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
void MINRFbeaconCounter(void){
|
void MINRFbeaconCounter(void) {
|
||||||
if(MINRF.beacon.active) {
|
if (MINRF.beacon.active) {
|
||||||
MINRF.beacon.time++;
|
MINRF.beacon.time++;
|
||||||
|
/*
|
||||||
char stemp[20];
|
char stemp[20];
|
||||||
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"Beacon\": %u}}"),D_CMND_NRF, MINRF.beacon.time);
|
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"Beacon\": %u}}"),D_CMND_NRF, MINRF.beacon.time);
|
||||||
AddLog_P2(LOG_LEVEL_DEBUG, stemp);
|
AddLog_P2(LOG_LEVEL_DEBUG, stemp);
|
||||||
RulesProcessEvent(stemp);
|
RulesProcessEvent(stemp);
|
||||||
|
*/
|
||||||
|
Response_P(PSTR("{%s:{\"Beacon\":%u}}"), D_CMND_NRF, MINRF.beacon.time);
|
||||||
|
XdrvRulesProcess();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -723,10 +727,10 @@ void MINRFAddKey(char* payload){
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Convert combined key-MAC-string to
|
* @brief Convert combined key-MAC-string to
|
||||||
*
|
*
|
||||||
* @param _string input string in format: AABBCCDDEEFF... (upper case!), must be 44 chars!!
|
* @param _string input string in format: AABBCCDDEEFF... (upper case!), must be 44 chars!!
|
||||||
* @param _mac target byte array with fixed size of 16 + 6
|
* @param _mac target byte array with fixed size of 16 + 6
|
||||||
*/
|
*/
|
||||||
void MINRFKeyMACStringToBytes(char* _string,uint8_t _keyMac[]) { //uppercase
|
void MINRFKeyMACStringToBytes(char* _string,uint8_t _keyMac[]) { //uppercase
|
||||||
uint32_t index = 0;
|
uint32_t index = 0;
|
||||||
|
@ -977,11 +977,15 @@ void HM10_TaskEvery100ms(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void HM10StatusInfo(){
|
void HM10StatusInfo() {
|
||||||
|
/*
|
||||||
char stemp[20];
|
char stemp[20];
|
||||||
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"found\": %u}}"),D_CMND_HM10, MIBLEsensors.size());
|
snprintf_P(stemp, sizeof(stemp),PSTR("{%s:{\"found\": %u}}"),D_CMND_HM10, MIBLEsensors.size());
|
||||||
AddLog_P2(LOG_LEVEL_INFO, stemp);
|
AddLog_P2(LOG_LEVEL_INFO, stemp);
|
||||||
RulesProcessEvent(stemp);
|
RulesProcessEvent(stemp);
|
||||||
|
*/
|
||||||
|
Response_P(PSTR("{%s:{\"found\":%u}}"), D_CMND_HM10, MIBLEsensors.size());
|
||||||
|
XdrvRulesProcess();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user