revert mission timer to 32 bit, add signal level monitoring
This commit is contained in:
@@ -29,6 +29,7 @@ void wifi_sniffer_packet_handler(void *buf, wifi_promiscuous_pkt_type_t type)
|
||||
const wifi_promiscuous_pkt_t *ppkt = (wifi_promiscuous_pkt_t *)buf;
|
||||
const uint8_t *payload = ppkt->payload;
|
||||
uint32_t len = ppkt->rx_ctrl.sig_len + 44;
|
||||
const int8_t rssi = ppkt->rx_ctrl.rssi;
|
||||
|
||||
// Simple PlecyC header check
|
||||
if (len > 24 + 11 &&
|
||||
@@ -44,7 +45,7 @@ void wifi_sniffer_packet_handler(void *buf, wifi_promiscuous_pkt_type_t type)
|
||||
|
||||
mbedtls_base64_encode(outBuf, sizeof(outBuf), &output_len, buf, len);
|
||||
printf("\n the frame is %ld bytes long\n", len);
|
||||
printf("\nGot 2400mhZ frame: %s\n", outBuf);
|
||||
printf("\nGot 2400mhZ frame on %d: %s\n", rssi, outBuf);
|
||||
// // Parse further as needed
|
||||
// ESP_LOGI(TAG, "HEXko\n");
|
||||
// ESP_LOG_BUFFER_HEXDUMP(TAG, buf, len, ESP_LOG_INFO);
|
||||
|
Reference in New Issue
Block a user