From e06539f636711f9507e9cd6e1eef491e1ca412c7 Mon Sep 17 00:00:00 2001 From: Hideaki Tai Date: Sat, 2 Jan 2021 12:21:23 +0900 Subject: [PATCH] update examples --- examples/Ethernet/send_receive/send_receive.ino | 4 ++-- examples/Ethernet/sender/sender.ino | 6 ++---- examples/WiFi/send_receive/send_receive.ino | 4 ++-- examples/WiFi/sender/sender.ino | 4 ++-- 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/examples/Ethernet/send_receive/send_receive.ino b/examples/Ethernet/send_receive/send_receive.ino index 702cd0c..dba802a 100644 --- a/examples/Ethernet/send_receive/send_receive.ino +++ b/examples/Ethernet/send_receive/send_receive.ino @@ -21,7 +21,7 @@ void setup() { delay(2000); Ethernet.begin(mac, ip); - artnet.begin(target_ip); + artnet.begin(); // artnet.subscribe_net(0); // optionally you can change // artnet.subscribe_subnet(0); // optionally you can change @@ -57,5 +57,5 @@ void loop() { memset(data, value, size); artnet.set(universe, data, size); - artnet.streaming(); // automatically send set data in 40fps + artnet.streaming(target_ip); // automatically send set data in 40fps } diff --git a/examples/Ethernet/sender/sender.ino b/examples/Ethernet/sender/sender.ino index e7433ee..4b825e0 100644 --- a/examples/Ethernet/sender/sender.ino +++ b/examples/Ethernet/sender/sender.ino @@ -17,7 +17,7 @@ void setup() { delay(2000); Ethernet.begin(mac, ip); - artnet.begin(target_ip); + artnet.begin(); Serial.println("start"); Serial.println(UDP_TX_PACKET_MAX_SIZE); @@ -28,7 +28,5 @@ void loop() { memset(data, value, size); artnet.set(universe, data, size); - artnet.streaming(); // automatically send set data in 40fps - - // Serial.println("loop"); + artnet.streaming(target_ip); // automatically send set data in 40fps } diff --git a/examples/WiFi/send_receive/send_receive.ino b/examples/WiFi/send_receive/send_receive.ino index 643326d..dd041e1 100644 --- a/examples/WiFi/send_receive/send_receive.ino +++ b/examples/WiFi/send_receive/send_receive.ino @@ -28,7 +28,7 @@ void setup() { Serial.print("WiFi connected, IP = "); Serial.println(WiFi.localIP()); - artnet.begin(target_ip); + artnet.begin(); // artnet.subscribe_net(0); // optionally you can change // artnet.subscribe_subnet(0); // optionally you can change @@ -60,5 +60,5 @@ void loop() { memset(data, value, size); artnet.set(universe, data, size); - artnet.streaming(); // automatically send set data in 40fps + artnet.streaming(target_ip); // automatically send set data in 40fps } diff --git a/examples/WiFi/sender/sender.ino b/examples/WiFi/sender/sender.ino index 9e67261..77607dc 100644 --- a/examples/WiFi/sender/sender.ino +++ b/examples/WiFi/sender/sender.ino @@ -28,7 +28,7 @@ void setup() { Serial.print("WiFi connected, IP = "); Serial.println(WiFi.localIP()); - artnet.begin(target_ip); + artnet.begin(); } void loop() { @@ -36,5 +36,5 @@ void loop() { memset(data, value, size); artnet.set(universe, data, size); - artnet.streaming(); // automatically send set data in 40fps + artnet.streaming(target_ip); // automatically send set data in 40fps }