sstaub / sACN

Send and receive sACN DMX packets following ANSI E1.31
MIT License
14 stars 1 forks source link

Function for set universe #7

Closed tresler closed 2 months ago

tresler commented 6 months ago

Is it possible to add new function for set universe (before begin)? It will be useful if I read universe from EEPROM. Something like that:

void Receiver::setUniverse(uint16_t universe) {
    this->universe = universe;
    mcastIP[2] = universe >> 8;
    mcastIP[3] = universe;
    **}**
sstaub commented 6 months ago

I think it is possible to do the class definition in setup() after you read data from the EEPROM.

sstaub commented 6 months ago

This will changed in the next release. e.g.

Receiver(UDP& udp);
begin(uint16_t universe, bool unicastMode = false);
sstaub commented 2 months ago

Done with v1.1