Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: lora_driver.c
- Revision:
- 1:168a6afffbff
- Parent:
- 0:a0c5877bd360
- Child:
- 2:1ef859bc5cd2
--- a/lora_driver.c Thu Jul 12 00:50:48 2018 +0000
+++ b/lora_driver.c Thu Jul 12 23:08:47 2018 +0000
@@ -241,10 +241,9 @@
{
case DEVICE_INIT:
{
- DBG_PRINTF("INIT\r\n");
if(is_modem_working() != AT_OK)
{
- DBG_PRINTF("AT failed\r\n");
+ DBG_PRINTF("AT failed. Resetting HW...\r\n");
// Modem isn't responding. Execute hard reset.
Modem_HardReset();
// We stay in DEVICE_INIT state and try again.
@@ -258,7 +257,6 @@
}
case DEVICE_CONFIG:
{
- DBG_PRINTF("Config\r\n");
eAtStatus_t loraModemRetCode = Lora_setDevEui(LoraConfigParam->devEui);
loraModemRetCode |= Lora_setAppEui(LoraConfigParam->appEui);
loraModemRetCode |= Lora_setAppKey(LoraConfigParam->appKey);
@@ -285,7 +283,7 @@
}
case DEVICE_JOIN:
{
- DBG_PRINTF("Join\r\n");
+ DBG_PRINTF("Joining...\r\n");
// Indicate a Join request using Nucleo LED
BSP_LED_On(LED_GREEN);
TimerStart(&NucleoLedTimer, 200);