Skip to content

Instantly share code, notes, and snippets.

@sgrodzicki
sgrodzicki / unifi-discovery.dart
Last active April 14, 2023 13:39
UniFi Discovery in Dart
import 'dart:io';
void main() {
var discoveryPort = 10001;
var discoveryBroadcast = InternetAddress('255.255.255.255');
var discoveryMulticast = InternetAddress('233.89.188.1');
RawDatagramSocket.bind(InternetAddress.anyIPv4, discoveryPort).then((RawDatagramSocket udpSocket) {
udpSocket.broadcastEnabled = true;
udpSocket.listen((e) {
@sgrodzicki
sgrodzicki / unifi_device_models.json
Last active December 11, 2023 17:24
UniFi device models
{
"BZ2": {
"name": "UAP",
"names": {
"abbreviation": "UAP",
"fullName": "Access Point",
"sku": "UAP"
},
"type": "uap",
"compliance": {