Closed nickzoic closed 6 years ago
Support for the ESP-Now protocol, as per #197
Sample code:
import network import esp w = network.WLAN() w.active(True) esp.espnow.init() bcast = bytes([255,255,255,255,255,255]) esp.espnow.add_peer(w, bcast) esp.espnow.set_recv_cb(lambda x: print("RECV %s %s" % x)) esp.espnow.set_send_cb(lambda x: print("SEND %s %s" % x)) esp.espnow.send(bcast, "hello, world")
The API could probably still use some work, but this is a first stab at it.
This, also, should be extended to cover the ESP32 and ESP8266 ports.
(I'm going to go create this over in the main project, so closing it here)
Support for the ESP-Now protocol, as per #197
Sample code:
The API could probably still use some work, but this is a first stab at it.