LoRa Difference between API and NodeRed

Home Forums General LoRa Difference between API and NodeRed

Tagged: , ,

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #30309

    Hi guys,
    I’ve recently been trying to create an IoT project and I’m using an MTCDT 246A gateway.
    I set up several techniques to retrieve the Lora packets sent by my sensors.
    I tried via NodeRed and via the API at https://[myip]/api?fields=lora/packets/up and I send the data to a database.
    Unfortunately, I have seen many differences between these two techniques.
    Via NodeRed everything looks good, I get 1 value per minute, but via the API I’m missing some information (which NodeRed has captured)
    My choice is still to use the API because it is easier and faster to set up.
    Is it a bug in the API not to give all the packages “up” (because the packages get confused with the “down”)?

    Thank you

    #30310
    Jason Reiss
    Keymaster

    How often is the API being queried?
    How many packets are returned?
    How many packets are missing?

    #30311
    Jason Reiss
    Keymaster

    What version of AEP are you running?
    There was an issue with returning large arrays of data from the network server through the API in a previous version, should have been addressed in 5.1.2.

    Best would be to push the data from the gateway to a remote server.

    #30312
    Jason Reiss
    Keymaster

    If there were missing records there would be a null as the last item in the array if I remember correctly.

    #30332

    Hi,
    Thank you for your answer.

    My firmware version is 5.0.0-AEP.

    Actually I should get 60 packages up per hour, which I get well with the nodered server of the gateway.
    But when I call the API, it’s as if the up and down packets are mixed and the number of up packets I get is quite random. If I add the number of up and down packets through the API, then I get my 60 per hour. But I don’t have the up data (since at least half of it is down).

    I hope I’ve been clear enough.

    #30335
    Jason Reiss
    Keymaster

    5.0.0 api may not return all results because of a bug.
    These 3 end points should return different results. The first lists up and down packets

    https://myip/api/lora/packets
    https://myip/api/lora/packets/up
    https://myip/api/lora/packets/down

    #30338

    Oh ok it’s a bug. I think I shall update my firmware.
    Thank you Jason

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.