comparison service/iot2/messages.capnp @ 1492:7c7415cfbc02

iot2: WIP still. more messages schema Ignore-this: ef94336852ff8885df861146fc1b01b darcs-hash:f5e1ffe61ecff1a7430b58a7504e35dcc809b1f8
author drewp <drewp@bigasterisk.com>
date Wed, 29 Jan 2020 01:03:40 -0800
parents 455b1b80516e
children
comparison
equal deleted inserted replaced
1491:6cd9341f0a28 1492:7c7415cfbc02
4 4
5 struct Report { 5 struct Report {
6 sensor @0 :Data; 6 sensor @0 :Data;
7 value @1 :Float32; 7 value @1 :Float32;
8 } 8 }
9
10 # node is at config version n (config pusher will update it)
11 # replace node config
12 # node component returns interesting sensor reports
13 # node component periodically returns state
14 # send 'command' updates to components
15
16 # from node: <node>/announce
17 # (<node> is picked by the node itself, often hostname or an id compiled into esp code)
18 struct NodeAnnounce {
19 config_version @0 :Int32;
20 hostname @1 :Data;
21 mac_address @2 :UInt64; # 48-bit
22 }
23
24 # to node: <node>/configure
25 struct ConfigureNode {
26 config_version @0 :Int32;
27 components @0 :List(Component)
28 struct Component {
29 id :Text
30
31 }
32 }