diff --git a/Artnet/Receiver.h b/Artnet/Receiver.h index 4abd265..004efe8 100644 --- a/Artnet/Receiver.h +++ b/Artnet/Receiver.h @@ -328,14 +328,16 @@ class Receiver_ this->macAddress(my_mac); arx::stdx::map universes; - for (const auto &cb_pair : this->callback_art_dmx_universes) { universes[cb_pair.first] = true; } - for (const auto &cb_pair : this->callback_art_nzs_universes) { universes[cb_pair.first] = true; } + // if no universe is subscribed, send reply for universe 0 + if (universes.empty()) { + universes[0] = true; + } for (const auto &u_pair : universes) { art_poll_reply::Packet reply = art_poll_reply::generatePacketFrom(my_ip, my_mac, u_pair.first, this->art_poll_reply_config); diff --git a/library.json b/library.json index 9e4c6c2..bfdaae6 100644 --- a/library.json +++ b/library.json @@ -11,7 +11,7 @@ "url": "https://github.com/hideakitai", "maintainer": true }, - "version": "0.5.0", + "version": "0.6.0", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/library.properties b/library.properties index 277630e..ca72ee1 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=ArtNet -version=0.5.0 +version=0.6.0 author=hideakitai maintainer=hideakitai sentence=Art-Net Sender/Receiver for Arduino (Ethernet, WiFi)