I am using below commands:
- receiver side, sudo /usr/sbin/lora_receive -a 904.3 -b 905.0 &
- sender side, sudo /usr/sbin/lora_send -f 903.9 -d {"do1":1}
- receiver side, get_lora_data
So, on receiver side it is receiving a packet & waiting for next packet. Is there any way to stop that? I want the receiver to receive a packet & end connection.
I have tried different ways. I have also tried using python script. I have used`def start_command():# Command as specifiedcmd = ["sudo", "/usr/sbin/lora_receive", "-a", "904.3", "-b", "905.0"]
# Start the subprocess without waiting for it to completeprocess = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, text=True)# Return the process handlereturn process`It does not work.