[LoRaMac]Optimize code reading and execution conditions and Add functions for use by the outer layer
LoRaMacGetMaxPayloadLength
- This function is provided for external use to obtain the maximum payload and can be used by the program to determine the number of bytes to send
LoRaMacSendInfoGet && LoRaMacSendInfoClear
- In the application, the current used power and the remaining power are obtained by calculation. So it is necessary to know the number of lora packets and the time in the air
Hello @wdfk-prog,
Please can you give some details about your pull request.
Regards,
Hello @wdfk-prog,
Please can you give some details about your pull request.
Regards,
As I read through the code, I noticed that it could be optimized; No further details could be provided
ST Internal Reference: 180991
Hello,
I forwarded your proposal to development team.
Regards,
Hello,
I forwarded your proposal to development team.
Regards,
I have updated some code, please check it out
Hello @wdfk-prog,
Thanks for your contribution, With the proposed change, LORAMAC_EVENT_INFO_STATUS_OK would only be set if MacCtx.NodeAckRequested is false AND the device is not in class C. The existing implementation, however, also sets LORAMAC_EVENT_INFO_STATUS_OK if MacCtx.NodeAckRequested is false AND the device is in class C.
This modification would alter the execution flow; therefore, it cannot be accepted.
Regards,