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))
Radio_1., which is not valid Python syntax, please edit the code so that it would be valid.