Esta es la prueba con LoRa y el sensor de luz integrado en la placa.

Dependencies:   libxDot-mbed5 ISL29011

Files at this revision

API Documentation at this revision

Comitter:
luisquiroga
Date:
Mon Dec 09 12:07:07 2019 +0000
Parent:
38:2c027824e046
Commit message:
Este es el que tiene la prueba LoRa con el sensor de Luz

Changed in this revision

examples/example_config.h Show annotated file Show diff for this revision Revisions of this file
examples/src/ota_example.cpp Show annotated file Show diff for this revision Revisions of this file
libxDot-mbed5.lib Show annotated file Show diff for this revision Revisions of this file
--- a/examples/example_config.h	Thu May 02 20:47:12 2019 +0000
+++ b/examples/example_config.h	Mon Dec 09 12:07:07 2019 +0000
@@ -24,7 +24,7 @@
 //      CP_AS923_JAPAN
 //      CP_IN865
 #if !defined(CHANNEL_PLAN)
-#define CHANNEL_PLAN CP_US915
+#define CHANNEL_PLAN CP_AU915
 #endif
 
 #endif
--- a/examples/src/ota_example.cpp	Thu May 02 20:47:12 2019 +0000
+++ b/examples/src/ota_example.cpp	Mon Dec 09 12:07:07 2019 +0000
@@ -26,7 +26,7 @@
 static std::string network_passphrase = "MultiTech";
 static uint8_t network_id[] = { 0x6C, 0x4E, 0xEF, 0x66, 0xF4, 0x79, 0x86, 0xA6 };
 static uint8_t network_key[] = { 0x1F, 0x33, 0xA1, 0x70, 0xA5, 0xF1, 0xFD, 0xA0, 0xAB, 0x69, 0x7A, 0xAE, 0x2B, 0x95, 0x91, 0x6B };
-static uint8_t frequency_sub_band = 0;
+static uint8_t frequency_sub_band = 1;
 static lora::NetworkType network_type = lora::PUBLIC_LORAWAN;
 static uint8_t join_delay = 5;
 static uint8_t ack = 0;
@@ -107,8 +107,8 @@
         // only one method or the other should be used!
         // network ID = crc64(network name)
         // network KEY = cmac(network passphrase)
-        update_ota_config_name_phrase(network_name, network_passphrase, frequency_sub_band, network_type, ack);
-        //update_ota_config_id_key(network_id, network_key, frequency_sub_band, network_type, ack);
+        //update_ota_config_name_phrase(network_name, network_passphrase, frequency_sub_band, network_type, ack);
+        update_ota_config_id_key(network_id, network_key, frequency_sub_band, network_type, ack);
 
         // configure network link checks
         // network link checks are a good alternative to requiring the gateway to ACK every packet and should allow a single gateway to handle more Dots
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/libxDot-mbed5.lib	Mon Dec 09 12:07:07 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/teams/MultiTech/code/libxDot-mbed5/#02ac4868b5a2