basic loraWAN sending, some settings done-- no keys or any of that though

Revision:
46:a124538e2891
Parent:
18:1720bc3831ea
Child:
53:1b6c71e938ac
--- a/lora_radio_helper.h	Thu Jan 03 15:30:32 2019 +0000
+++ b/lora_radio_helper.h	Thu Jan 10 12:15:30 2019 +0000
@@ -28,48 +28,48 @@
 
 #if (MBED_CONF_APP_LORA_RADIO == SX1272)
 
-    SX1272_LoRaRadio radio(MBED_CONF_APP_LORA_SPI_MOSI,
-                           MBED_CONF_APP_LORA_SPI_MISO,
-                           MBED_CONF_APP_LORA_SPI_SCLK,
-                           MBED_CONF_APP_LORA_CS,
-                           MBED_CONF_APP_LORA_RESET,
-                           MBED_CONF_APP_LORA_DIO0,
-                           MBED_CONF_APP_LORA_DIO1,
-                           MBED_CONF_APP_LORA_DIO2,
-                           MBED_CONF_APP_LORA_DIO3,
-                           MBED_CONF_APP_LORA_DIO4,
-                           MBED_CONF_APP_LORA_DIO5,
-                           MBED_CONF_APP_LORA_RF_SWITCH_CTL1,
-                           MBED_CONF_APP_LORA_RF_SWITCH_CTL2,
-                           MBED_CONF_APP_LORA_TXCTL,
-                           MBED_CONF_APP_LORA_RXCTL,
-                           MBED_CONF_APP_LORA_ANT_SWITCH,
-                           MBED_CONF_APP_LORA_PWR_AMP_CTL,
-                           MBED_CONF_APP_LORA_TCXO);
+SX1272_LoRaRadio radio(MBED_CONF_APP_LORA_SPI_MOSI,
+                       MBED_CONF_APP_LORA_SPI_MISO,
+                       MBED_CONF_APP_LORA_SPI_SCLK,
+                       MBED_CONF_APP_LORA_CS,
+                       MBED_CONF_APP_LORA_RESET,
+                       MBED_CONF_APP_LORA_DIO0,
+                       MBED_CONF_APP_LORA_DIO1,
+                       MBED_CONF_APP_LORA_DIO2,
+                       MBED_CONF_APP_LORA_DIO3,
+                       MBED_CONF_APP_LORA_DIO4,
+                       MBED_CONF_APP_LORA_DIO5,
+                       MBED_CONF_APP_LORA_RF_SWITCH_CTL1,
+                       MBED_CONF_APP_LORA_RF_SWITCH_CTL2,
+                       MBED_CONF_APP_LORA_TXCTL,
+                       MBED_CONF_APP_LORA_RXCTL,
+                       MBED_CONF_APP_LORA_ANT_SWITCH,
+                       MBED_CONF_APP_LORA_PWR_AMP_CTL,
+                       MBED_CONF_APP_LORA_TCXO);
 
 #elif (MBED_CONF_APP_LORA_RADIO == SX1276)
 
-    SX1276_LoRaRadio radio(MBED_CONF_APP_LORA_SPI_MOSI,
-                           MBED_CONF_APP_LORA_SPI_MISO,
-                           MBED_CONF_APP_LORA_SPI_SCLK,
-                           MBED_CONF_APP_LORA_CS,
-                           MBED_CONF_APP_LORA_RESET,
-                           MBED_CONF_APP_LORA_DIO0,
-                           MBED_CONF_APP_LORA_DIO1,
-                           MBED_CONF_APP_LORA_DIO2,
-                           MBED_CONF_APP_LORA_DIO3,
-                           MBED_CONF_APP_LORA_DIO4,
-                           MBED_CONF_APP_LORA_DIO5,
-                           MBED_CONF_APP_LORA_RF_SWITCH_CTL1,
-                           MBED_CONF_APP_LORA_RF_SWITCH_CTL2,
-                           MBED_CONF_APP_LORA_TXCTL,
-                           MBED_CONF_APP_LORA_RXCTL,
-                           MBED_CONF_APP_LORA_ANT_SWITCH,
-                           MBED_CONF_APP_LORA_PWR_AMP_CTL,
-                           MBED_CONF_APP_LORA_TCXO);
+SX1276_LoRaRadio radio(MBED_CONF_APP_LORA_SPI_MOSI,
+                       MBED_CONF_APP_LORA_SPI_MISO,
+                       MBED_CONF_APP_LORA_SPI_SCLK,
+                       MBED_CONF_APP_LORA_CS,
+                       MBED_CONF_APP_LORA_RESET,
+                       MBED_CONF_APP_LORA_DIO0,
+                       MBED_CONF_APP_LORA_DIO1,
+                       MBED_CONF_APP_LORA_DIO2,
+                       MBED_CONF_APP_LORA_DIO3,
+                       MBED_CONF_APP_LORA_DIO4,
+                       MBED_CONF_APP_LORA_DIO5,
+                       MBED_CONF_APP_LORA_RF_SWITCH_CTL1,
+                       MBED_CONF_APP_LORA_RF_SWITCH_CTL2,
+                       MBED_CONF_APP_LORA_TXCTL,
+                       MBED_CONF_APP_LORA_RXCTL,
+                       MBED_CONF_APP_LORA_ANT_SWITCH,
+                       MBED_CONF_APP_LORA_PWR_AMP_CTL,
+                       MBED_CONF_APP_LORA_TCXO);
 
 #else
-    #error "Unknown LoRa radio specified (SX1272,SX1276 are valid)"
+#error "Unknown LoRa radio specified (SX1272,SX1276 are valid)"
 #endif
 
 #endif /* APP_LORA_RADIO_HELPER_H_ */