From e71cf2b47748979240457a4ea1fcc64ad23cc483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Bl=C3=A4si?= Date: Sat, 26 Jan 2019 21:44:58 +0100 Subject: [PATCH] Add flatbuffer schemas. --- README.md | 3 +++ device_update.fbs | 18 ++++++++++++++++++ master_update.fbs | 8 ++++++++ 3 files changed, 29 insertions(+) create mode 100644 README.md create mode 100644 device_update.fbs create mode 100644 master_update.fbs diff --git a/README.md b/README.md new file mode 100644 index 0000000..88dc4c8 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +#### Flattbuffer schemas + +https://google.github.io/flatbuffers/ diff --git a/device_update.fbs b/device_update.fbs new file mode 100644 index 0000000..5e736dc --- /dev/null +++ b/device_update.fbs @@ -0,0 +1,18 @@ +namespace logger.flatbuffer; + +table SpotChannel { + name:string; + value:double; + valueText:string; + unit:string; + timestamp:uint (key); +} + +table DeviceUpdate { + name:string; + type:string; + serialNumber:uint; + spotChannels:[SpotChannel]; +} + +root_type DeviceUpdate; \ No newline at end of file diff --git a/master_update.fbs b/master_update.fbs new file mode 100644 index 0000000..7946f2a --- /dev/null +++ b/master_update.fbs @@ -0,0 +1,8 @@ +namespace logger.flatbuffer; + +table MasterUpdate { + updateStart:uint; + updateEnd:uint; +} + +root_type MasterUpdate; \ No newline at end of file