Skip to content

Commit

Permalink
add explanation for 4 callacks limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFrangipane committed Jan 8, 2024
1 parent 519fa04 commit b4df224
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ void loop() {
- Universe (0-15) can be set in `artnet.subscribe(universe, callback)`,
- These universes (targets of the callbacks) are reflected to `net_sw` `sub_sw` `sw_in` in `ArtPollreply` automatically

PortTypes, GoodInput/Output, SwIn, etc., are limited to 4 ports. If more than 4 callbacks are needed, it is better to subscribe to more than four and make public 4 of them

```C++
artnet.begin(net, subnet); // net and subnet can be set only once
artnet.subscribe(univ1, callback1); // callbacks can be set
Expand Down

0 comments on commit b4df224

Please sign in to comment.