Skip to content

Commit

Permalink
chore: bump version to v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
hideakitai committed Feb 2, 2024
1 parent 80b867d commit bbbc115
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Artnet/Receiver.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class Receiver_
break;
}
case OpCode::Poll: {
this->sendArtPollReply();
this->sendArtPollReply(remote_info);
op_code = OpCode::Poll;
break;
}
Expand Down Expand Up @@ -145,7 +145,7 @@ class Receiver_
return;
}
uint16_t u = ((uint16_t)net << 8) | ((uint16_t)subnet << 4) | (uint16_t)universe;
this->subscribeArtDmx(u, func);
this->subscribeArtDmxUniverse(u, func);
}

// subscribe artdmx packet for specified universe (15 bit)
Expand Down Expand Up @@ -298,7 +298,7 @@ class Receiver_
return &(this->packet[art_dmx::DATA]);
}

void sendArtPollReply()
void sendArtPollReply(const RemoteInfo &remote)
{
const IPAddress my_ip = this->localIP();
const IPAddress my_subnet = this->subnetMask();
Expand All @@ -308,7 +308,7 @@ class Receiver_
for (const auto &cb_pair : this->callback_art_dmx_universes) {
art_poll_reply::Packet reply = art_poll_reply::generatePacketFrom(my_ip, my_mac, cb_pair.first, this->art_poll_reply_config);
static const IPAddress local_broadcast_addr = IPAddress((uint32_t)my_ip | ~(uint32_t)my_subnet);
this->stream->beginPacket(local_broadcast_addr, DEFAULT_PORT);
this->stream->beginPacket(remote.ip, DEFAULT_PORT);
this->stream->write(reply.b, sizeof(art_poll_reply::Packet));
this->stream->endPacket();
}
Expand Down
4 changes: 2 additions & 2 deletions examples/ETH/receiver/receiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Ethernet stuff
const IPAddress ip(192, 168, 0, 201);
const IPAddress gateway(192, 168, 0, 1);
const IPAddress subnet(255, 255, 255, 0);
const IPAddress subnet_mask(255, 255, 255, 0);

ArtnetReceiver artnet;
uint16_t universe1 = 1; // 0 - 32767
Expand All @@ -19,7 +19,7 @@ void setup() {
Serial.begin(115200);

ETH.begin();
ETH.config(ip, gateway, subnet);
ETH.config(ip, gateway, subnet_mask);
artnet.begin();

// if Artnet packet comes to this universe, this function (lambda) is called
Expand Down
4 changes: 2 additions & 2 deletions examples/WiFi/receiver/receiver.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const char* ssid = "your-ssid";
const char* pwd = "your-password";
const IPAddress ip(192, 168, 1, 201);
const IPAddress gateway(192, 168, 1, 1);
const IPAddress subnet(255, 255, 255, 0);
const IPAddress subnet_mask(255, 255, 255, 0);

ArtnetWiFiReceiver artnet;
uint16_t universe1 = 1; // 0 - 32767
Expand All @@ -26,7 +26,7 @@ void setup() {

// WiFi stuff
WiFi.begin(ssid, pwd);
WiFi.config(ip, gateway, subnet);
WiFi.config(ip, gateway, subnet_mask);
while (WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(500);
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"url": "https://github.com/hideakitai",
"maintainer": true
},
"version": "0.3.0",
"version": "0.4.0",
"license": "MIT",
"frameworks": "*",
"platforms": "*",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ArtNet
version=0.3.0
version=0.4.0
author=hideakitai
maintainer=hideakitai
sentence=Art-Net Sender/Receiver for Arduino (Ethernet, WiFi)
Expand Down

0 comments on commit bbbc115

Please sign in to comment.