Lora support for the STM B_L072Z_LRWAN1 board out of the box. Also supports HopeRF RFM95, Murata CMWX1ZZABZ and Semtech SX1276MB1MAS/SX1276MB1LAS modules.
Dependencies: BufferedSerial SX1276GenericLib mbed USBDeviceHT
main.cpp
00001 /* 00002 * Copyright (c) 2018 HELIOS Software GmbH 00003 * 30826 Garbsen (Hannover) Germany 00004 * Licensed under the Apache License, Version 2.0); 00005 */ 00006 #include "main.h" 00007 00008 00009 DigitalOut led(LED); 00010 00011 00012 int main() { 00013 /* 00014 * inits the Serial or USBSerial when available (230400 baud). 00015 * If the serial uart is not is not connected it swiches to USB Serial 00016 * blinking LED means USBSerial detected, waiting for a connect. 00017 * It waits up to 30 seconds for a USB terminal connections 00018 */ 00019 InitSerial(30*1000, &led); 00020 dprintf("Welcome to the SX1276GenericLib"); 00021 00022 dprintf("Starting a simple LoRa PingPong"); 00023 00024 SX1276PingPong(); 00025 }
Generated on Fri Jul 15 2022 00:33:04 by 1.7.2