to test channels
Dependencies: pulga-lorawan-drv Si1133 BME280
Revision 60:c4f9e9202fb4, committed 2020-11-30
- Comitter:
- brunnobbco
- Date:
- Mon Nov 30 19:25:11 2020 +0000
- Parent:
- 59:a4fc1efb1569
- Commit message:
- LoraWan to Pulga
Changed in this revision
--- a/main.cpp Tue Dec 10 13:08:45 2019 +0000 +++ b/main.cpp Mon Nov 30 19:25:11 2020 +0000 @@ -60,7 +60,7 @@ * Dummy sensor class object */ //DS1820 ds1820(PC_9); -BME280 sensor_amb(P0_13, P0_15, 0x77 << 1) ; +//BME280 sensor_amb(P0_13, P0_15, 0x77 << 1) ; /** * Sensors Variables @@ -100,8 +100,8 @@ * Entry point for application */ -mbed::DigitalOut _alive_led(P1_13, 1); -mbed::DigitalOut _actuated_led(P1_14,0); +mbed::DigitalOut _alive_led(P1_13, 0); +mbed::DigitalOut _actuated_led(P1_14,1); int main(void) { @@ -152,7 +152,7 @@ printf("\r\n Connection - In Progress ...\r\n"); -_actuated_led =1; +_actuated_led =0; // make your event queue dispatching events forever ev_queue.dispatch_forever(); @@ -167,24 +167,8 @@ uint16_t packet_len; int16_t retcode; int32_t sensor_value; - - /* if (ds1820.begin()) { - ds1820.startConversion(); - sensor_value = ds1820.read(); - printf("\r\n Dummy Sensor Value = %d \r\n", sensor_value); - ds1820.startConversion(); - sensor_value++; - - } else { - printf("\r\n No sensor found \r\n"); - return; - }*/ - sensor_amb.initialize(); - sensor_get = sensor_amb.getTemperature(); - - packet_len = sprintf((char *) tx_buffer, "Temperature Sensor Value is %d", - sensor_get); + packet_len = sprintf((char *) tx_buffer, "Sensor Value is 10.0\n"); retcode = lorawan.send(MBED_CONF_LORA_APP_PORT, tx_buffer, packet_len, MSG_UNCONFIRMED_FLAG);
--- a/mbed-lora-radio-drv.lib Tue Dec 10 13:08:45 2019 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -https://github.com/ARMmbed/mbed-semtech-lora-rf-drivers/#6012fa43cf9f2cae46fa9d424fe4051d00e157a2
--- a/mbed_app.json Tue Dec 10 13:08:45 2019 +0000 +++ b/mbed_app.json Mon Nov 30 19:25:11 2020 +0000 @@ -34,11 +34,11 @@ "lora.duty-cycle-on": true, "lora.phy": "AU915", "lora.device-eui": "{0x2f, 0xc6, 0xaa, 0xf2, 0x8b, 0x61, 0x4f, 0x8a}", - "lora.application-eui": "{0x65, 0x48, 0x59, 0x64, 0x52, 0xd4, 0xc5, 0xd5}", - "lora.application-key": "{0xa8, 0xdc, 0xc6, 0x31, 0x35, 0x38, 0x90, 0xf7, 0x0b, 0x5c, 0x5e, 0xf6, 0x5a, 0x87, 0x9c, 0xd0}", + "lora.application-eui": "{0x65, 0x48, 0x59, 0x64, 0x52, 0xd4, 0xc5, 0xd5}", "lora.appskey": "{ 0x8e, 0x28, 0xac, 0x67, 0x5b, 0xfe, 0x1c, 0xea, 0x4c, 0x2a, 0xeb, 0x15, 0x87, 0x22, 0xe6, 0x6a}", "lora.nwkskey": "{ 0xaa, 0x68, 0xae, 0x6e, 0x14, 0x65, 0x3a, 0xa5, 0x18, 0x38, 0x00, 0x42, 0xe3, 0x17, 0xd4, 0x8e}", - "lora.device-address": "0xc03b0ff0" + "lora.device-address": "0xc03b0ff0", + "lora.app-port": 15 }, "K64F": { @@ -308,9 +308,9 @@ "lora-cs": "P0_26", "lora-reset": "P1_15", "lora-dio0": "P0_12", - "lora-dio1": "P0_14", - "lora-dio2": "P1_8", - "lora-dio3": "P1_9", + "lora-dio1": "NC", + "lora-dio2": "NC", + "lora-dio3": "NC", "lora-dio4": "NC", "lora-dio5": "NC", "lora-rf-switch-ctl1": "NC",
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pulga-lorawan-drv.lib Mon Nov 30 19:25:11 2020 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/brunnobbco/code/pulga-lorawan-drv/#6c5853c2fd72