Enter a product part number, or a portion of a part number.
Firstly, we will navigate to our main lora_app.c file.
Navigate to the function SendTxData in lora_app.c file and edit line 409 as seen below. *Note: The *100/10 is removed as we want to display pressure in hPa Next, navigate to line 429 and edit as seen below. *Note: The *10 for humidity is removed as we want to express humidity as a percentage Next, we want to include the battery level of the 1SJ device in our main data output function. Go to line 453 comment out and copy AppData.Buffer[i++] = GetBatteryLevel(); to line 439. Next, comment out line 444 as seen below. Next, we will output our data into the virtual terminal. Since the F/W is from ST Microelectronics MCU, the function for printf is similar to their APP_LOG as seen below. We will be printing a series of data variables in the terminal. Go to line 470 and add in the following or copy paste from the code below:
Finally, click on rebuild all files and load it into the 1SJ board. Press the reset button on the 1SJ device and notice the output on the Tera Term VT.