This is an example of function that decode lora bytes message to sendML if you are using loraserver brocaar and want to add a payload bytes to senML conversion then you need to follow this steps create an application in application configuration you have the choice
- None
- CayenneLPP
- Custom JavaScript
Use "Custom JavaScript" using this option you can write your own payload decoder (device->server) and encoder (server->device)
Check Example