From dfb2d3e71386fc6976075b7a0d01efa6ec54aa2b Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Thu, 20 Jun 2024 02:00:44 +0900 Subject: [PATCH 1/2] fix: send ArtPollReply even if no universe subscription --- Artnet/Receiver.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); From 0641f9f194e9dfcf673d9cb72c8f74e1b0b175a9 Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Thu, 20 Jun 2024 02:01:02 +0900 Subject: [PATCH 2/2] chore: bump version v0.6.0 --- library.json | 2 +- library.properties | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)