Browse Source

Reorder

master
Anthony Hinsinger 7 years ago
parent
commit
66a23299f3
  1. 16
      GettingStarted.html
  2. 3
      main.cpp

16
GettingStarted.html

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh"
content="1;url="https://os.mbed.com/docs/latest/tools/exporting.html>
<script type="text/javascript">
window.location.href = "https://os.mbed.com/docs/latest/tools/exporting.html"
</script>
<title>Page Redirection</title>
</head>
<body>
If you are not redirected automatically, please follow the
<a href='https://os.mbed.com/docs/v5.6/tools/exporting.html/'>link to the online exporter documentation</a>
</body>
</html>

3
main.cpp

@ -133,8 +133,6 @@ int main(void) {
uint16_t key; uint16_t key;
uint16_t readsize; uint16_t readsize;
connect.connect_type = LORAWAN_CONNECTION_OTAA;
// NVStore is a sigleton, get its instance // NVStore is a sigleton, get its instance
NVStore &nvstore = NVStore::get_instance(); NVStore &nvstore = NVStore::get_instance();
@ -164,6 +162,7 @@ int main(void) {
return -1; return -1;
} }
connect.connect_type = LORAWAN_CONNECTION_OTAA;
connect.connection_u.otaa.app_eui = const_cast<uint8_t *>(app_eui); connect.connection_u.otaa.app_eui = const_cast<uint8_t *>(app_eui);
connect.connection_u.otaa.dev_eui = const_cast<uint8_t *>(dev_eui); connect.connection_u.otaa.dev_eui = const_cast<uint8_t *>(dev_eui);
connect.connection_u.otaa.app_key = const_cast<uint8_t *>(app_key); connect.connection_u.otaa.app_key = const_cast<uint8_t *>(app_key);

Loading…
Cancel
Save