1 | import { CharacteristicValue, Nullable } from "./types";
|
2 |
|
3 |
|
4 |
|
5 | export interface EventNotification {
|
6 | characteristics: CharacteristicEventNotification[];
|
7 | }
|
8 |
|
9 |
|
10 |
|
11 | export interface CharacteristicEventNotification {
|
12 | aid: number;
|
13 | iid: number;
|
14 | value: Nullable<CharacteristicValue>;
|
15 | }
|
16 |
|
17 |
|
18 |
|
19 | export declare function consideredTrue(input: string | null): boolean;
|
20 |
|
21 |
|
22 |
|
23 | export declare const enum TLVValues {
|
24 | REQUEST_TYPE = 0,
|
25 | METHOD = 0,
|
26 | USERNAME = 1,
|
27 | IDENTIFIER = 1,
|
28 | SALT = 2,
|
29 | PUBLIC_KEY = 3,
|
30 | PASSWORD_PROOF = 4,
|
31 | ENCRYPTED_DATA = 5,
|
32 | SEQUENCE_NUM = 6,
|
33 | STATE = 6,
|
34 | ERROR_CODE = 7,
|
35 | RETRY_DELAY = 8,
|
36 | CERTIFICATE = 9,
|
37 | PROOF = 10,
|
38 | SIGNATURE = 10,
|
39 | PERMISSIONS = 11,
|
40 | FRAGMENT_DATA = 12,
|
41 | FRAGMENT_LAST = 13,
|
42 | SEPARATOR = 255
|
43 | }
|
44 |
|
45 |
|
46 |
|
47 | export declare const enum PairMethods {
|
48 | PAIR_SETUP = 0,
|
49 | PAIR_SETUP_WITH_AUTH = 1,
|
50 | PAIR_VERIFY = 2,
|
51 | ADD_PAIRING = 3,
|
52 | REMOVE_PAIRING = 4,
|
53 | LIST_PAIRINGS = 5
|
54 | }
|
55 |
|
56 |
|
57 |
|
58 |
|
59 |
|
60 | export declare const enum PairingStates {
|
61 | M1 = 1,
|
62 | M2 = 2,
|
63 | M3 = 3,
|
64 | M4 = 4,
|
65 | M5 = 5,
|
66 | M6 = 6
|
67 | }
|
68 |
|
69 |
|
70 |
|
71 | export declare const enum HAPMimeTypes {
|
72 | PAIRING_TLV8 = "application/pairing+tlv8",
|
73 | HAP_JSON = "application/hap+json",
|
74 | IMAGE_JPEG = "image/jpeg"
|
75 | }
|
76 |
|
\ | No newline at end of file |