User's Manual

WISE-1510 User Manual 36
2 API were used to notify user application that LoRa finished transmit or receive
action. What you should do is Register callback function in the beginning.
Make sure node successfully joined LoRa gateway.
Then, start to run the state machine. If no data need to send, enter deep sleep
mode and wait for waking up NODE_ACTIVE_PERIOD_IN_SEC seconds.
This example send sensor (Temperature, Humidity) data periodically, user should
modify node_get_sensor_data() to implement read sensor data.
If Tx complete, node_tx_done_cb() will transfer to NODE_STATE_LOWPOWER
and prepare to read/send sensor data again.
If LoRa node got downlink data, node_rx_done_cb() will be invoked to get data.
Then transfer to NODE_STATE_LOWPOWER.