syntax = "proto3"; package dinetrpc; import "error.proto"; enum DeviceType { DeviceUnknown = 0; TWS3000WUM = 1; TWS3000DUU = 2; TWS3000DUM = 3; // 3-9 reserved ZKL3000 = 10; ZKL3000RC = 11; ZKL3000RCC = 12; // 12-19 reserved GreenHub3000 = 20; CRTMGateway = 21; CRTMSensor = 22; CRM3000 = 23; DNCM = 24; ReedSensor = 25; } enum DeviceState { DeviceStateUnknown = 0; DeviceStateService = 1; DeviceStateIdle = 2; DeviceStateArmed = 3; DeviceStateActive = 4; } message DeviceError { Errno code = 1; uint32 count = 2; uint64 first = 3; uint64 last = 4; } message DeviceInfoItem { string type = 1; map version = 2; } message DeviceInfoResult { repeated DeviceInfoItem result = 1; } message DeviceDataItem { string state = 1; bool error = 2; repeated Errno errors = 3; } message DeviceDataResult { repeated DeviceDataItem result = 1; }