remove queued by mistake LoRa message
- This topic has 3 replies, 2 voices, and was last updated 9 years, 1 month ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You cannot reply to this topic.
Home › Forums › Lora Network Server › remove queued by mistake LoRa message
Tagged: lora-network-server, lora-out
Hi,
I was wondering if there is a way to ‘undo’ or overwrite queued lora messages sent to network server using lora-out node.
In my setup, i’m using the rx slots after a transmission to send some data back from my Multitech AEP to the emitting device (class A).
I observed that it is possible to queue messages in the lora network server (independently of the comunication between my device and the gateway) and that those messages would be unstacked one at a time each time the device with a matching eid sends some data to the gateway.
This is really useful as it guarantees that the data I queue from gateway side is effectively sent during the rx slot timeout (and not missed due to some processing / GC on node-red side)
But that’s also my main problem.
If between two transmission sessions (my remote device logs data periodically) , I queue some data twice or more, I need to have my device transmit data just as many times to retrieve all messages back.
Do you know if there is a way to overwrite (or delete) messages directed to a specific eid directly from the lora network server ?
The lora-in and lora-out nodes are just wrappers around MQTT.
There are other message end-points available for control of the network server.
Send MQTT empty message to “lora/<DEV-EUI>/clear” to remove all queued packets. There is currently no command to remove or replace a single item.
There is also a UDP command port 6677 interface available
Thanks for quick answer Jason.
From the mqtt page it seems the syntax is not global, but per eid (lora/<DEV-EUI>/clear).
I just tested publishing to different EUIs and it looks like only messages of given EUIs are suppressed from the queue.
Looks like some of my message was filtered as HTML.
That is correct, each device queue must be cleared.