Skip to content
Discussion options

You must be logged in to vote

This is nothing special, I think.
You get a timeout when sending to to_mac[0] (which is most likely different from to_mac[1] printed) and you don't handle the resulting exception.
Maybe to_mac[0] is not started, disconnected, whatever ?

I don't have enough patience to analyze your whole program (this is your task, anyway).

    async def send_message(self, to_mac, msg: dict):
        msg_str = json.dumps(msg)
        print(f"Comms: send_message: to_mac={to_mac[1]} msg_str={msg_str}")
        await self.e.send(to_mac[0], msg_str.encode('ascii'))

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@garykuipers
Comment options

Answer selected by garykuipers
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants