knx 0.2.1
“KNX protocol in pure Dart: addresses, cEMI frames, KNXnet/IP headers, datapoint types and KNX Secure (IP Secure, Data Secure). Runs on the…”
Backtick shell command-substitution syntaxBasename is uppercase README.md
SHA-256de7db7c431f3bf194919b966560292dbbd5efb7d561f8ee056d84298e2a6380c
MaleculeH₆(Cm₂Cr₅Db₆OsPo)Md₄(In₂Pa₄Pt₂)
Evidence
3:22… blocks in pure Dart. No Flutter, no `dart:io`: the same code runs on the
4Dart VM, in Flutter apps and on the web.
5
6Used in production by [Busclear](https://busclear.de), a KNX bus monitor for Home Assistant,
7Raspberry Pi and the apps. For bus connections (KNXnet/IP tunnel, routing, serial FT1.2 with
8the Weinzierl kBerry) see [`knx_io`](../knx_io).
9
10## Contents
11
12`package:knx/knx.dart`
13
14- Group and individual addresses: parse and format, 3-level, 2-level and free style.
15- cEMI: L_Data fr …
1/// KNX protocol building blocks without Flutter and without `dart:io`, so they run on the Dart VM,
2/// in Flutter apps and on the web: group and individual addresses, cEMI L_Data frames and group
3/// telegrams, KNXnet/IP service identifiers and frame headers, datapoint types (values and units; texts
4/// are up to the caller), and the silence rule for cyclic senders.
5library;
6
⋯9 lines
1import 'dart:typed_data';
2
3/// Minimally parsed cEMI data frame (L_Data.ind / L_Data.con) – also for individual addressing
4/// (device diagnostics), not only group telegrams.
5class CemiFrame {
6 const CemiFrame({
7 required this.code,
8 required this.ctrl1,
9 required this.ctrl2,
10 required this.source,
11 required …
48:17… + c[1];
49 if (c.length < i + 8) return null;
50 final npdu = c[i + 6];
51 final end = (i + 7 + npdu + 1).clamp(i + 8, c.length);
52 return CemiFrame(
⋯4 lines
1import 'telegram.dart';
2
3/// A group address that usually sends regularly but has gone silent.
4class CycleSilence {
5 const CycleSilence(this.address, {required this.last, required this.interval});
6
7 /// Group address (raw, 16 bit).
8 f …
Showing the top 5 files — 7 more files (48 regions) not shown.
No evidence locations were recorded for this file. Raw result