-
Notifications
You must be signed in to change notification settings - Fork 6
/
scratch.dart
56 lines (44 loc) · 1.3 KB
/
scratch.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import 'package:flutter/foundation.dart';
import 'package:superduper/utils.dart';
import 'package:unique_name_generator/unique_name_generator.dart';
//2a26
var a = [50, 50, 49, 49, 50, 50];
//2a27
var b = [118, 51, 46, 50, 46, 48];
//2a28
var c = [50, 50, 49, 49, 50, 50];
//2a29
var d = [67, 79, 77, 79, 68, 85, 76, 69];
var asd = strToLis('040134b3000000000000');
// Manufacturer Name
// COMODULE
// Hardware Revision
// v3.2.0
// Firmware Revision
// 221122
// Software Revision
// 221122
String toStr(List<int> data) {
return data.map((e) => String.fromCharCode(e)).join();
}
void main(List<String> args) {
debugPrint('Software Revision');
debugPrint(a.map((e) => String.fromCharCode(e)).join());
debugPrint('boop');
debugPrint(b.map((e) => String.fromCharCode(e)).join());
debugPrint('Firmware Revision');
debugPrint(c.map((e) => String.fromCharCode(e)).join());
debugPrint('Manufacturer Name');
debugPrint(d.map((e) => String.fromCharCode(e)).join());
debugPrint(asd.toString());
debugPrint(toStr(asd));
//https://www.comodule.com/
//nordic bluetooth
var ung = UniqueNameGenerator(
dictionaries: [adjectives, animals],
style: NameStyle.capital,
separator: ' ',
);
List<String> names = List.generate(10, (index) => ung.generate(seed: 1));
debugPrint(names.toString());
}