Atos-Research-and-Innovation / IoTagent-LoRaWAN

FIWARE IoT Agent for LoRaWAN protocol (with CayenneLpp and CBOR data models)
https://fiware-lorawan.readthedocs.io/en/latest/
Other
34 stars 40 forks source link

Error decoding caynneLLP message #175

Open Akashreddy231 opened 1 year ago

Akashreddy231 commented 1 year ago

Hello,

Here I am trying to send uplink messages from the Things network with payload format cayenellp and using Fiware LoRaWAN IoTagent, I could see data traffic coming to lorawan it agent but it shows the following error in the IoT agent log.

some quick support is much appreciated.

Thank you very much.

time=2023-04-30T16:05:55.328Z | lvl=INFO | corr=f603d059-04b5-4113-8be7-792e3584f7da | trans=f603d059-04b5-4113-8be7-792e3584f7da | op=IoTAgentLoRaWAN.CayenneLpp | from=n/a | srv=n/a | subsrv=n/a | msg=Decoding CaynneLPP message:[object Object] | comp=IoTAgent

time=2023-04-30T16:05:55.334Z | lvl=ERROR | corr=f603d059-04b5-4113-8be7-792e3584f7da | trans=f603d059-04b5-4113-8be7-792e3584f7da | op=IoTAgentLoRaWAN.CayenneLpp | from=n/a | srv=n/a | subsrv=n/a | msg=Error decoding CaynneLPP message:TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received an instance of Object | comp=IoTAgent

time=2023-04-30T16:05:55.334Z | lvl=ERROR | corr=f603d059-04b5-4113-8be7-792e3584f7da | trans=f603d059-04b5-4113-8be7-792e3584f7da | op=IoTAgentLoRaWAN.Agent | from=n/a | srv=n/a | subsrv=n/a | msg=Could not cast message to NGSI | comp=IoTAgent

takurx commented 1 year ago

I reproduced it in my environment, when I made the tutorial run the stm32 example. It may have something to do with #170.

takurx commented 1 year ago

171 's fix, on my environment it worked