modelRT/constants/measurement.go

38 lines
904 B
Go

// Package constants define constant variable
package constants
const (
// DataSourceTypeCL3611 define CL3611 type
DataSourceTypeCL3611 = 1
// DataSourceTypePower104 define electricity 104 protocol type
DataSourceTypePower104 = 2
)
// channel name prefix
const (
ChannelPrefixTelemetry = "Telemetry"
ChannelPrefixTelesignal = "Telesignal"
ChannelPrefixTelecommand = "Telecommand"
ChannelPrefixTeleadjusting = "Teleadjusting"
ChannelPrefixSetpoints = "Setpoints"
)
// channel name suffix
const (
ChannelSuffixP = "p"
ChannelSuffixQ = "q"
ChannelSuffixS = "s"
ChannelSuffixPF = "pf"
ChannelSuffixF = "f"
ChannelSuffixDeltaF = "df"
ChannelSuffixUAB = "uab"
ChannelSuffixUBC = "ubc"
ChannelSuffixUCA = "uca"
)
const (
// MaxIdentifyHierarchy define max data indentify syntax hierarchy
MaxIdentifyHierarchy = 7
IdentifyHierarchy = 4
)