main
KeeganForelight 2 years ago
commit 1cbbeb2728

@ -23,9 +23,9 @@ const (
type Status int32 type Status int32
const ( const (
Status_DEAD Status = 0 // connected but not responding Status_DEAD Status = 0
Status_ALIVE Status = 1 // actively responding Status_ALIVE Status = 1
Status_UNKOWN Status = 2 // Disconnected Status_UNKOWN Status = 2
) )
// Enum value maps for Status. // Enum value maps for Status.
@ -122,6 +122,7 @@ type ReactorStatusPing struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// new devices
Devices []*Device `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"` Devices []*Device `protobuf:"bytes,2,rep,name=devices,proto3" json:"devices,omitempty"`
} }
@ -177,7 +178,7 @@ type Device struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Addr int32 `protobuf:"varint,1,opt,name=addr,proto3" json:"addr,omitempty"` // i2c addr Addr int32 `protobuf:"varint,1,opt,name=addr,proto3" json:"addr,omitempty"` // i2c addr
Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=grpc.Status" json:"status,omitempty"` Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=grpc.Status" json:"status,omitempty"` // most recent status
} }
func (x *Device) Reset() { func (x *Device) Reset() {

Loading…
Cancel
Save