I am having issues sending a downlink packet from the application server to a node. I am using the Rest API page. I have been able to successfully login, generate a token, and delete downlink queues. I am trying to queue some downlink packets to nodes but I cannot get the Curl command to work.
Using the /api page I entered
"deviceQueueItem":
{
"confirmed": true,
"data": "eyJ0ZW1wZXJhdHVyZSI6IDIyLjV9",
"devEUI": "89f87eee857fab51",
"fCnt": 0,
"fPort": 1,
"jsonObject" : "string"
}
and get the response
{
"error": "unknown codec type: ",
"code": 2,
"message": "unknown codec type: ",
"details": []
}
I know the jsonObject is not set correctly. However, I cannot find any examples on how to set this. I have gone into the device profiles and tried adding a codec but I have no experience with javascript and Rest. All I want to do is send down a stream of bytes with no encoding (other than base64). My marshaller is set to json as well.
Is there any example that shows how to set the codec for the device profile, and then using the Rest api to queue a downlink packet to a node.
I have also tried installing chirpstack-api but the grpcio fails to install because I am running out of memory on my Raspberry Pi.
Thank you in advance,
Tyler