This library is to simplify the validation and handling of E1.31 sACN (DMX over Ethernet) traffic on Arduino ESP8266 and ESP32 based platforms. It supports both Unicast and Multicast configurations, exposing the full E1.31 packet to the user. If you require support for traditional Arduino devices or polling modes, please refer to the E131 library from which this project was derived from.
Development is always done against the latest git pulls for the ESP8266 and ESP32 cores. If you are experiencing issues with your current Arduino core, consider updating it.
WIFI_CONNECT_TIMEOUT
can be changed in ESPAsyncE131.h
.ESPAsyncE131(uint8_t buffers = 1)
: Creates a new ESPAsyncE131 instance and allocates a ring buffer with X buffer slots. You'll want at least 1 buffer for each Universe that may reach your device.bool begin(e131_listen_t type, uint16_t universe = 1)
: This should be called from within setup()
or whenever you need to re-configure your E1.31 listener. Valid type
s are E131_UNICAST
and E131_MULTICAST
. universe
is optional and only used for Multicast configuration. Returns true if successful.bool isEmpty()
: Returns if the internal ring buffer is emptyvoid *pull(e131_packet_t *packet)
: Pulls oldest packet from the ring buffer and copies it to packet
e131_stats_t stats
: E1.31 Statistics