Sending triggered before Data -LoRa- Node-RED

Home Forums Conduit: AEP Model Sending triggered before Data -LoRa- Node-RED

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19875
    Alexis Girard
    Participant

    Hi everyone,

    I’m having some issues with Node Red when I’m trying to send some LoRa data.
    From time to time the output LoRa node is triggered before the data get to this node which result in sending an empty string.

    Do you know how this output LoRa node is triggered.
    Or do you know a way to make sure that the output LoRa node wait for the new data to arrive to the node.

    Most of the time I need to handle the LoRa data received before making a response to the mDot.

    Thanks for your help?
    Alexis;

    #19876
    Peter Ferland
    Blocked

    Hi Alexis,
    What are you using for the input to the flow? It sounds like the entire flow is being executed when its not intended to be.

    As a quick work around, you can return null from a function node just before the LoRa output node to stop the flow. Your javascript function would be something like:

    if(msg.payload === “”){
    return null;
    }

    #19877
    Alexis Girard
    Participant

    Hi Peter,

    My flow begins with a Lora input node.
    I’ll also try your proposition and see how it’s going. Thanks for you answer!

    #19883
    Alexis Girard
    Participant

    Hi,

    I let my test run over the weekend and this first solution doesn’t seems to solve de problem. I still have about 8% of my message which get and empty string for a response.

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