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: libmDot-mbed5 DOGS102 ISL29011 MMA845x MPL3115A2 NCP5623B X_NUCLEO_IKS01A1 Senet_Packet
Fork of MTDOT-UDKDemo_Senet by
Diff: main.cpp
- Revision:
- 25:a5860d250e79
- Parent:
- 24:6f78c00a9e9c
- Child:
- 26:752359e19a97
--- a/main.cpp Thu Aug 25 15:43:20 2016 +0000
+++ b/main.cpp Thu Aug 25 18:32:28 2016 +0000
@@ -147,8 +147,9 @@
static std::vector<uint8_t> config_app_id(app_id,app_id+sizeof(app_id)/sizeof(uint8_t));
static std::vector<uint8_t> config_app_key(app_key,app_key+sizeof(app_key)/sizeof(uint8_t));
-static uint8_t config_frequency_sub_band = 0;
+static uint8_t config_frequency_sub_band = 1;
static bool config_adr_on = true;
+#define DATARATE mDot::DR2
bool position_changed = true;
uint32_t sample_period = 0;
@@ -910,7 +911,7 @@
if ((mdot_ret = mdot_radio->setPublicNetwork(true)) != mDot::MDOT_OK) {
log_error(mdot_radio, "failed to set Public Network Mode", mdot_ret);
}
- mdot_radio->setTxDataRate(mDot::DR0);
+ mdot_radio->setTxDataRate(DATARATE);
mdot_radio->setTxPower(14);
mdot_radio->setJoinRetries(1);
mdot_radio->setJoinMode(mDot::OTA);
