aboutsummaryrefslogtreecommitdiff
path: root/wifi-triangulator.proto
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2017-04-07 17:45:02 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2017-04-07 17:45:02 +0200
commit84939234eb66fe7957eaf39956f18224e3108c25 (patch)
tree97a6d77c92ad373199cd3aecb2cbcb6488357480 /wifi-triangulator.proto
parentbed4c80f31051ec47463caa3e9511374062c6536 (diff)
downloadwifi-triangulator-84939234eb66fe7957eaf39956f18224e3108c25.tar.gz
wifi-triangulator-84939234eb66fe7957eaf39956f18224e3108c25.tar.bz2
wifi-triangulator-84939234eb66fe7957eaf39956f18224e3108c25.tar.xz
wifi-triangulator-84939234eb66fe7957eaf39956f18224e3108c25.zip
o Refactoring into two parts, sender and receiver that sends protobuf messages over UDP.
Diffstat (limited to 'wifi-triangulator.proto')
-rw-r--r--wifi-triangulator.proto29
1 files changed, 29 insertions, 0 deletions
diff --git a/wifi-triangulator.proto b/wifi-triangulator.proto
new file mode 100644
index 0000000..7daf9bf
--- /dev/null
+++ b/wifi-triangulator.proto
@@ -0,0 +1,29 @@
+syntax = "proto3";
+
+package wifi_triangulator.pb;
+
+enum packet_type {
+ unknown = 0;
+ probe_request = 1;
+ beacon = 2;
+ probe_response = 3;
+ null = 4;
+ ack = 5;
+ data = 6;
+ cts = 7;
+ rts = 8;
+ cf_end = 9;
+ cf_end_cf_ack = 10;
+ ps_poll = 11;
+};
+
+message probe {
+ sint32 rssi = 2;
+ fixed64 src = 3;
+ fixed64 dst = 4;
+}
+
+message envelope {
+ packet_type type = 1;
+ probe probe = 2;
+}