pycom / pycom-libraries

MicroPython libraries and examples that work out of the box on Pycom's IoT modules
330 stars 378 forks source link

Fix/loramesh example #103

Closed cuca94 closed 5 years ago

cuca94 commented 5 years ago

What does this implement/fix? Explain your changes.

rc_cb needs two parameters, the callback routine and the sockets which should be checked for incoming data (https://docs.pycom.io/firmwareapi/pycom/network/lora/pymesh.html#meshrxcbhandler-argument

without fixing this, the example will crash after connecting to the mesh network see forum entry: https://forum.pycom.io/topic/4912/loramesh-example-crashing-on-lopy4

Does this close any currently open issues?

Any relevant logs, error output, etc?

Any other comments?

Where has this been tested?