68 lines
2.5 KiB
Protocol Buffer
68 lines
2.5 KiB
Protocol Buffer
//======================================================================================
|
|
// @file OpcMessage.proto
|
|
// @brief 用于opc tool 与opc service 交互
|
|
// @author jxd
|
|
//======================================================================================
|
|
|
|
syntax="proto2";
|
|
package iot_idl;
|
|
enum enTypeMessage
|
|
{
|
|
MT_TOOLS_REQUEST_POINT_DATA = 1;//opc 工具请求点数据
|
|
MT_SERVER_REPLY_POINT_DATA = 2;//opc 服务回复点数据
|
|
}
|
|
|
|
message AiPointInfo
|
|
{
|
|
required string strPointTag = 1; //点标签
|
|
optional string strPointDesc = 2; //点描述
|
|
required int32 nPointType = 3; //点类型
|
|
required double dValue = 4; //点值
|
|
required int32 nStatus = 5; //点状态
|
|
}
|
|
message DiPointInfo
|
|
{
|
|
required string strPointTag = 1; //点标签
|
|
optional string strPointDesc = 2; //点描述
|
|
required int32 nPointType = 3; //点类型
|
|
required int32 nValue = 4; //点值
|
|
required int32 nStatus = 5; //点状态
|
|
}
|
|
message PiPointInfo
|
|
{
|
|
required string strPointTag = 1; //点标签
|
|
optional string strPointDesc = 2; //点描述
|
|
required int32 nPointType = 3; //点类型
|
|
required double dValue = 4; //点值
|
|
required int32 nStatus = 5; //点状态
|
|
}
|
|
message MiPointInfo
|
|
{
|
|
required string strPointTag = 1; //点标签
|
|
optional string strPointDesc = 2; //点描述
|
|
required int32 nPointType = 3; //点类型
|
|
required int32 nValue = 4; //点值
|
|
required int32 nStatus = 5; //点状态
|
|
}
|
|
|
|
message RequestPointInfo
|
|
{
|
|
required string strGroupTag = 1; //组标签
|
|
required int32 nDomainId = 2; //域
|
|
required int32 nSubSystemId = 3; //专业
|
|
optional uint64 nTime = 4; //时间
|
|
required string strHostName = 5; //主机名
|
|
}
|
|
|
|
message ReplyPointInfo
|
|
{
|
|
required string strGroupTag = 1; //组标签
|
|
repeated AiPointInfo aiInfo = 2; //ai
|
|
repeated PiPointInfo piInfo = 3; //pi
|
|
repeated MiPointInfo miInfo = 4; //mi
|
|
repeated DiPointInfo diInfo = 5; //di
|
|
required int32 nDomainId = 6; //域
|
|
required int32 nSubSystemId = 7; //专业
|
|
optional uint64 nTime = 8; //时间
|
|
required string strHostName = 9; //主机名
|
|
} |