-1

When I run this segment of code every item in the list is executed even printed out in the statement, however the last message in the array is always never arrives to the other node as if it is being dropped by the node or middle script.

The node I am using is the Heltec V4 and over serial although when tried over TCP behavior does not change.

def lora_send_toUser(node, response):
    message_max = 200
    print(response)
    for message in response:
        for c in range(0, len(message), message_max):
            Segment = message[c:c+message_max]
            Radio_1.
            Radio_1.sendText(
                str(Segment),
                int(node),
                wantAck=True,
                wantResponse=False,
                channelIndex=20,
            )
            time.sleep(1.4)
            log.event("MESH", 0, "Message sent to "+str(node))
New contributor
Caroline Pickett is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
3
  • What is your question about this? Commented yesterday
  • There is a line, Radio_1., which is not valid Python syntax, please edit the code so that it would be valid. Commented yesterday
  • 1
    Add a minimal reproducible example, plus logs or erros from the receiving node so others can see what is going wrong. Commented yesterday

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.