|
|
|
@ -178,8 +178,12 @@ void loop(void) {
@@ -178,8 +178,12 @@ void loop(void) {
|
|
|
|
|
u8g2_DrawStr(&u8g2, 4, 8 + 8, buf); |
|
|
|
|
|
|
|
|
|
if (packet.buffer_len) { |
|
|
|
|
ESP_LOGI(TAG, "lora received packet (len %d, rssi: %d, snr: %f): %s\n", packet.buffer_len, packet.rssi, |
|
|
|
|
packet.snr, packet.buffer); |
|
|
|
|
ESP_LOGI(TAG, |
|
|
|
|
"lora received packet (len %d, rssi: %d, snr: %f): %s\n", |
|
|
|
|
packet.buffer_len, |
|
|
|
|
packet.rssi, |
|
|
|
|
packet.snr, |
|
|
|
|
packet.buffer); |
|
|
|
|
u8g2_SetFont(&u8g2, u8g2_font_4x6_mf); |
|
|
|
|
snprintf(buf, 40, "lora pkt(rssi: %d, snr: %f)", packet.rssi, packet.snr); |
|
|
|
|
u8g2_DrawStr(&u8g2, 4, 8 + 8 + 8, buf); |
|
|
|
|