ubiquiti-protocol-dissector is a wireshark dissector for the Ubiquiti discovery protocol used by the UniFi and EdgeMax devices.
Copy ubiquiti-discovery.lua to the Wireshark plugin folder.
Windows:
Personal plugin folder %APPDATA%\Wireshark\plugins
or the global plugin folder (Wireshark install dir)\plugins
Linux:
~/.local/lib/wireshark/plugins