glenn20 / micropython

MicroPython - a lean and efficient Python implementation for microcontrollers and constrained systems
https://micropython.org
Other
39 stars 9 forks source link

Add missing argument to e.send call #10

Closed larsks closed 1 year ago

larsks commented 1 year ago

The example sender code was missing the peer argument to e.send(). Without this change, the code fails on esp8266 devices:

>>> e.send('end')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: function missing 1 required positional arguments

This is with:

v1.19.1-espnow-6-g44f65965b

glenn20 commented 1 year ago

@larsks - Apologies for overlooking this PR. I have updated the docs in espnow-g20-dev and espnow-g20 branches.