maybe I am a total noob, but I don;t really understand the examples, especially the download one. I was hoping that if add a void “DownLinkDataHandle(McpsIndication_t *mcpsIndication)” I will be able to handle, parse and process messages to init something like change cycle_time or change status of GPIO.
I am using TTN. I am able to join, but no downloads are processed.
May I kindly ask someone to help and show me the working example?
Here is my try, which doesn’t seems to work. https://pastebin.com/5YxNEnNP
My second question:
Can some explain me the standard loop void? Especially switch( DeviceState ). See if the cube-cell boot up then it’s trying to join lorawan - “Joining” and here I can see “DEVICE_STATE_SLEEP” case handled several times, which include loraWan.sleep. How it can handle the OTAA process if the lorawan is in sleep-mode?
Sorry for stupid questions, but I will really appreciate your help.
Or may I asked to share with us working example which support low-power and download message handling.
Thanks a lot !!!