connect, set channel 1 to 255, disconnect.
var options =host: '172.16.23.15'var artnet = options;// set channel 1 to 255 and disconnect afterwards.artnet;
The set method can set multiple channels at once:
Use an array to set subsequent channels...
// set channel 100 to 10, channel 101 to 20 and channel 102 to 30artnet;
...if you want to keep certain channels unchanged set them to null
// set channel 50 to 255 and channel 52 to 127artnet;
you can omit the channel, it defaults to 1
// Set channel 1 to 255 and channel 2 to 127:artnet;
Additionally, you can send trigger macros to devices.
// Send key 3, subkey 1 to all devices.artnet;// Send key 2, subkey 71 (the letter 'G') to ArtNet Devices responding to 0x6A6B.artnet;
This lib throttles the maximum send rate to ~40Hz. Unchanged data is refreshed every ~4s.
Every parameter except the value(s) is optional. If you supply a universe you need to supply the channel also. Defaults: universe = 0, channel = 1
Callback is called with (error, response) params. If error and response are null data remained unchanged and therefore nothing has been sent.
Sends an ArtNet ArtTrigger packet. ArtTriggers are typically device specific and perform functions like starting and stopping shows.
Every parameter except the
key is optional. If you supply an
oem, you need to supply a
Callback is called with
(error, response) params.
triggers are NEVER throttled, as they are time sensitive. They are always sent immediately upon processing.
Closes the connection and stops the send interval.
Change the Art-Net hostname/address after initialization
Change the Art-Net port after initialization.
Does not work when using the broadcast address
The MIT License (MIT)
Copyright (c) 2014-2017 Sebastian Raff and Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Art-Net™ Designed by and Copyright Artistic Licence Holdings Ltd.