2023-10-09 10:09 AM
Hi,
I am developing a LoRaWAN project using the ST code (LoRaWAN_End_Node).
int main(void)
{
HAL_Init();
SystemClock_Config();
MX_LoRaWAN_Init();
MX_GPIO_Init();
MX_I2C1_Init();
MX_TIM16_Init();
HAL_TIM_Base_Start_IT(&htim16);
while (1)
{
MX_LoRaWAN_Process();
}
I was able to connect to the network server by performing the following software sequence:
SystemApp_Init() --> LoRaWAN_Init() --> APP_LOG(TS_OFF, VLEVEL_M, "\r\n###### = JOINED = ")
Now I would like some help to know which correct sequence I should follow to carry out the uplink procedure to the network server.
I tried calling the SendTxData() function to send the battery level and temperature, but it didn't work.
The final idea of the project will be to send the temperature, battery and position of my valve to the network server from time to time, or when I press a button.
Could anyone help me with this sequence, please?
Thank you!
Regards,
Tiago Fernandes