|
@@ -83,7 +83,7 @@ static void init(void) |
|
|
|
|
|
|
|
|
void print_menu(void) |
|
|
void print_menu(void) |
|
|
{ |
|
|
{ |
|
|
printf("\r\n-- Sendcomm LoRa P2P Sample Application --\r\n") ; |
|
|
|
|
|
|
|
|
printf("\r\n-- Sendcomm LoRa P2P Sample Application (NNN MHz) --\r\n") ; |
|
|
printf("- Press user (white) button to transmit a counter [%d]\r\n", buttonCounter) ; |
|
|
printf("- Press user (white) button to transmit a counter [%d]\r\n", buttonCounter) ; |
|
|
printf("- Type any character to transmit over LoRa Radio\r\n") ; |
|
|
printf("- Type any character to transmit over LoRa Radio\r\n") ; |
|
|
} |
|
|
} |
|
@@ -196,8 +196,13 @@ void serial_data_handler(void) |
|
|
/* Configure LoRa Radio for P2P */ |
|
|
/* Configure LoRa Radio for P2P */ |
|
|
static void configure_radio(void) |
|
|
static void configure_radio(void) |
|
|
{ |
|
|
{ |
|
|
|
|
|
#if true |
|
|
|
|
|
KRASH_ME // Forces attention placed on a hard coded frequency risk |
|
|
|
|
|
// Remember to replace text output banner (NNN MHz) in main |
|
|
|
|
|
LORAWAN_Reset(ISM_EU868) ; // Refer to stack_common.h for the definition of IsmBand_t |
|
|
// Cmd mac reset 868 - reset the LoRaWAN stack and initialize it with the parameters of the selected ISM band |
|
|
// Cmd mac reset 868 - reset the LoRaWAN stack and initialize it with the parameters of the selected ISM band |
|
|
LORAWAN_Reset(ISM_EU868) ; // Refer to stack_common.h for the definition of IsmBand_t |
|
|
LORAWAN_Reset(ISM_EU868) ; // Refer to stack_common.h for the definition of IsmBand_t |
|
|
|
|
|
#endif // #if true |
|
|
|
|
|
|
|
|
// Cmd mac pause |
|
|
// Cmd mac pause |
|
|
uint32_t time_ms = LORAWAN_Pause() ; |
|
|
uint32_t time_ms = LORAWAN_Pause() ; |
|
|