forked from john30/ebusd-configuration
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbroadcast.tsp
More file actions
49 lines (42 loc) · 770 Bytes
/
Copy pathbroadcast.tsp
File metadata and controls
49 lines (42 loc) · 770 Bytes
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
import "@ebusd/ebus-typespec";
import "./_templates.tsp";
using Ebus;
using Ebus.Num;
using Ebus.Dtm;
using Ebus.Str;
namespace Broadcast {
/** default *b */
@passive
@zz(BROADCAST)
model b {}
/** default *w */
@write
@zz(BROADCAST)
model w {}
/** date/time */
@inherit(b)
@ext(0x7, 0)
model Datetime {
outsidetemp: temp2;
time: btime;
date: bdate;
}
model Id is Ebus.Id.Id;
model IdQuery is Ebus.Id.IdQuery;
model IdAnswer is Ebus.Id.IdAnswer;
/** Inquiry of existence */
@inherit(w)
@ext(0x7, 0xfe)
model Queryexistence {}
/** sign of life */
@inherit(b)
@ext(0x7, 0xff)
model Signoflife {}
/** error message */
@inherit(b)
@ext(0xfe, 1)
model Error {
@maxLength(10)
error: STR;
}
}