Skip to content

Commit

Permalink
Add flatbuffer schemas.
Browse files Browse the repository at this point in the history
  • Loading branch information
konstantinblaesi committed Jan 26, 2019
0 parents commit e71cf2b
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#### Flattbuffer schemas

https://google.github.io/flatbuffers/
18 changes: 18 additions & 0 deletions device_update.fbs
Original file line number Diff line number Diff line change
@@ -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;
8 changes: 8 additions & 0 deletions master_update.fbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
namespace logger.flatbuffer;

table MasterUpdate {
updateStart:uint;
updateEnd:uint;
}

root_type MasterUpdate;

0 comments on commit e71cf2b

Please sign in to comment.