LoRaWAN_FAE_Training
Dependencies: X_NUCLEO_IKS01A2
Diff: main.cpp
- Revision:
- 50:dbfbb8d03a79
- Parent:
- 49:2453a6404fbe
- Child:
- 51:a6da9392e7c3
--- a/main.cpp Wed Mar 13 09:02:16 2019 +0000 +++ b/main.cpp Wed Mar 13 10:18:20 2019 +0000 @@ -196,19 +196,6 @@ float value1, value2; char buffer1[32], buffer2[32]; int32_t axes[3]; - - if (ds1820.begin()) { - ds1820.startConversion(); - sensor_value = ds1820.read(); - printf("\r\n Dummy Sensor Value = %3.1f \r\n", sensor_value); - ds1820.startConversion(); - } else { - printf("\r\n No sensor found \r\n"); - return; - } - - packet_len = sprintf((char*) tx_buffer, "Dummy Sensor Value is %3.1f", - sensor_value); // hum_temp->get_temperature(&value1); // hum_temp->get_humidity(&value2); @@ -286,7 +273,7 @@ // acc_gyro->get_g_axes(axes); // printf("LSM6DSL [gyro/mdps]: %6ld, %6ld, %6ld\r\n", axes[0], axes[1], axes[2]); - packet_len = Index + 1; // Compute the final payload size +// packet_len = Index + 1; // Compute the final payload size retcode = lorawan.send(MBED_CONF_LORA_APP_PORT, tx_buffer, packet_len, MSG_UNCONFIRMED_FLAG);