We are trying to convert an application from using JSON for mote<>sitewhere communications and have run into some problems.
#1 When sending alerts via JSON we add the "Level" metadata to indicate the info/warning/error/critical.
In the standard GPB definition at
the Level field is not present. Any specific reason?
#2 In order to transfer a table with information (essentially a binary structure array) we need to create the following protobuf structure
message Irmacos {
message Identity {
required Commands Command = 1 ;
required fixed64 Id = 2 ;
required fixed32 tNA = 3 ;
required fixed64 Mac = 4 ;
required int32 Chan = 5 ;
required sint32 X32a = 6 ;
required sint32 X32b = 7 ;
}
message IdentCreate {
required Commands Command = 1 ;
required uint32 Count = 2 ;
repeated Identity Identities = 3 ;
}
}
Using the API to setup a system device command we are unable to create the same structure. From what we can see the underlying code for the API does not support this, although doing with JSON is possible.
Any suggestions?
Andre