this new hooks will help you implement new and custom protocols in usermods. I've provided an example (see usermods/udp_name_sync). The example will help you share the main segment name across different WLED instances. The segment name can be useful to sync with some effects like GIF image or scrolling text. If you define new packet format in your usermod, make sure it will either not collide with already used version of wled udp packet : - 0 is for udp sync - 1 is for AudioReactive data - 2 is for udp_name_sync :) Also, the onUdpPacket will override "parseNotification" if it returns "true". Have fun!
6 lines
88 B
JSON
6 lines
88 B
JSON
{
|
|
"name": "udp_name_sync",
|
|
"build": { "libArchive": false },
|
|
"dependencies": {}
|
|
}
|