log if transmit is not successful

This commit is contained in:
Frank Sautter 2023-02-27 01:54:18 +01:00
parent c0082eb095
commit d11f921a2b

View File

@ -219,7 +219,11 @@ void lora_send(void *pvParameters) {
xQueueReceive(LoraSendQueue, &SendBuffer, (TickType_t)0);
break;
case LMIC_ERROR_TX_BUSY: // LMIC already has a tx message pending
ESP_LOGI(TAG, "Message not sent, LMIC busy, will retry later");
vTaskDelay(pdMS_TO_TICKS(500 + random(400))); // wait a while
break;
case LMIC_ERROR_TX_FAILED: // message was not sent
ESP_LOGI(TAG, "Message not sent, TX failed, will retry later");
vTaskDelay(pdMS_TO_TICKS(500 + random(400))); // wait a while
break;
case LMIC_ERROR_TX_TOO_LARGE: // message size exceeds LMIC buffer size