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.
Dependencies: DHT22 libmDot-mbed5
Fork of mDot_LoRa_Connect_ABPA by
Revision 9:7f7194b5b4e3, committed 2017-08-07
- Comitter:
- kellybs1
- Date:
- Mon Aug 07 07:33:20 2017 +0000
- Parent:
- 8:206e0563e1a1
- Child:
- 10:02615da7a9fe
- Commit message:
- touchups
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Aug 07 07:21:45 2017 +0000
+++ b/main.cpp Mon Aug 07 07:33:20 2017 +0000
@@ -13,15 +13,18 @@
static uint8_t config_network_dskey[] = { 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04, 0x01, 0x02, 0x03, 0x04 };
static uint8_t config_frequency_sub_band = 1;
+Serial pc(USBTX, USBRX);
+
+
+
int main() {
+ pc.baud(9600);
int32_t ret;
std::vector<uint8_t> data;
std::string data_str = "hello!";
- // use US915 plan
- lora::ChannelPlan* plan = new lora::ChannelPlan_US915();
- // use EU868 plan
- // lora::ChannelPlan* plan = new lora::ChannelPlan_EU868();
+ // use AU915 plan
+ lora::ChannelPlan* plan = new lora::ChannelPlan_AU915();
assert(plan);
// get a mDot handle
mDot* dot = mDot::getInstance(plan);
@@ -128,5 +131,5 @@
osDelay(std::max((uint32_t)5000, (uint32_t)dot->getNextTxMs()));
}
- return 0;
+ return 0; //unreachable
}
