From 7274ce67d6216b8586380e916bf6f3d116d5d8ff Mon Sep 17 00:00:00 2001 From: twowinter Date: Fri, 3 Jan 2020 13:15:54 +0800 Subject: [PATCH] =?UTF-8?q?LoRa=20Demo=20=E7=9A=84=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E5=91=A8=E6=9C=9F=E5=8D=95=E4=BD=8D=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E7=A7=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/LoRaWAN/lora_demo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/LoRaWAN/lora_demo.c b/examples/LoRaWAN/lora_demo.c index 6becb5c5..accc7323 100644 --- a/examples/LoRaWAN/lora_demo.c +++ b/examples/LoRaWAN/lora_demo.c @@ -51,7 +51,7 @@ */ -uint16_t report_period = 3000; +uint16_t report_period = 10; typedef struct device_data_st { uint8_t temperature; @@ -110,7 +110,7 @@ void application_entry(void *arg) dev_data_wrapper.u.dev_data.period = report_period; tos_lora_module_send(dev_data_wrapper.u.serialize, sizeof(dev_data_t)); - tos_task_delay(report_period); + tos_task_delay(report_period * 1000); } }