use new counters

This commit is contained in:
Charles 2018-04-02 01:36:34 +02:00
parent ef85178016
commit 2a7989658d

View File

@ -79,10 +79,22 @@ void printKeys(void) {
#endif // VERBOSE #endif // VERBOSE
void do_send(osjob_t* j){ void do_send(osjob_t* j){
mydata[0] = (macnum & 0x0000ff00) >> 8; uint16_t data;
mydata[1] = macnum & 0x000000ff; // Total of differents MAC seen (BLE+WiFi)
mydata[2] = (blenum & 0x0000ff00) >> 8; data = (uint16_t) macs.size();
mydata[3] = blenum & 0x000000ff; mydata[0] = (data & 0xff00) >> 8;
mydata[1] = data & 0xff;
// Total of differents MAC seen BLE Only
data = (uint16_t) bles.size();
mydata[2] = (data & 0xff00) >> 8;
mydata[3] = data & 0xff;
// Total of differents MAC seen Wifi Only
// TBD ?
//data = (uint16_t) wifis.size();
//mydata[4] = (data & 0xff00) >> 8;
//mydata[5] = data & 0xff;
// Check if there is not a current TX/RX job running // Check if there is not a current TX/RX job running
if (LMIC.opmode & OP_TXRXPEND) { if (LMIC.opmode & OP_TXRXPEND) {