Documentation
¶
Index ¶
- Constants
- Variables
- type Boolean
- type Choice
- type ChoiceTag
- type EndOfSmlMsg
- type ImplicitChoice
- type Integer8
- type Integer16
- type Integer32
- type Integer64
- type OctetString
- type Optional
- type SMLDecoder
- type SML_GetList_Req
- type SML_GetList_Res
- type SML_List
- type SML_ListEntry
- type SML_ListType
- type SML_Message
- type SML_MessageBody
- type SML_PublicClose_Req
- type SML_PublicClose_Res
- type SML_PublicOpen_Req
- type SML_PublicOpen_Res
- type SML_Signature
- type SML_Status
- type SML_Time
- type SML_Timestamp
- type SML_TimestampLocal
- type SML_Unit
- type SML_Value
- type Unsigned8
- type Unsigned16
- type Unsigned32
- type Unsigned64
Constants ¶
View Source
const ( ChoiceTagOpenRequest = 0x100 ChoiceTagOpenResponse = 0x101 ChoiceTagCloseRequest = 0x200 ChoiceTagCloseResponse = 0x201 ChoiceTagGetProfilePackRequest = 0x300 ChoiceTagGetProfilePackResponse = 0x301 ChoiceTagGetProfileListRequest = 0x400 ChoiceTagGetProfileListResponse = 0x401 ChoiceTagGetProcParameterRequest = 0x500 ChoiceTagGetProcParameterResponse = 0x501 ChoiceTagSetProcParameterRequest = 0x600 ChoiceTagSetProcParameterResponse = 0x601 ChoiceTagGetListRequest = 0x700 ChoiceTagGetListResponse = 0x701 ChoiceTagGetCosemRequest = 0x800 ChoiceTagGetCosemResponse = 0x801 ChoiceTagSetCosemRequest = 0x900 ChoiceTagSetCosemResponse = 0x901 ChoiceTagActionCosemRequest = 0xa00 ChoiceTagActionCosemResponse = 0xa01 ChoiceTagAttentionResponse = 0xff01 )
View Source
const ( ChoiceTagSecIndex = 0x1 ChoiceTagTimestamp = 0x2 ChoiceTagLocalTimestamp = 0x3 )
View Source
const (
ChoiceTagSMLTime = 0x1
)
Variables ¶
Functions ¶
This section is empty.
Types ¶
type EndOfSmlMsg ¶
type EndOfSmlMsg struct{}
type ImplicitChoice ¶
type ImplicitChoice struct {
Val interface{}
}
type OctetString ¶
type OctetString []byte
func (OctetString) MarshalJSON ¶
func (o OctetString) MarshalJSON() ([]byte, error)
type Optional ¶
func (Optional[T]) MarshalJSON ¶
type SMLDecoder ¶
type SML_GetList_Req ¶
type SML_GetList_Req struct {
ClientID OctetString
ServerID Optional[OctetString]
Username Optional[OctetString]
Password Optional[OctetString]
ListName Optional[OctetString]
}
type SML_GetList_Res ¶
type SML_GetList_Res struct {
ClientID Optional[OctetString]
ServerID OctetString
ListName Optional[OctetString]
ActSensorTime Optional[SML_Time]
ValList SML_List
ListSignature Optional[SML_Signature]
ActGatewayTime Optional[SML_Time]
}
type SML_List ¶
type SML_List []SML_ListEntry
type SML_ListEntry ¶
type SML_ListEntry struct {
ObjName OctetString
Status Optional[SML_Status]
ValTime Optional[SML_Time]
Unit Optional[SML_Unit]
Scaler Optional[Integer8]
Value SML_Value
ValueSignature Optional[SML_Signature]
}
type SML_ListType ¶
type SML_ListType Choice
type SML_Message ¶
type SML_Message struct {
TransactionID OctetString
GroupNo Unsigned8
AbortOnError Unsigned8
MessageBody SML_MessageBody
CRC16 Unsigned16
EndOfSmlMsg EndOfSmlMsg
}
type SML_MessageBody ¶
type SML_MessageBody Choice
type SML_PublicClose_Req ¶
type SML_PublicClose_Req struct {
GlobalSignature Optional[SML_Signature]
}
type SML_PublicClose_Res ¶
type SML_PublicClose_Res struct {
GlobalSignature Optional[SML_Signature]
}
type SML_PublicOpen_Req ¶
type SML_PublicOpen_Req struct {
CodePage Optional[OctetString]
ClientID OctetString
ReqFileID OctetString
ServerID Optional[OctetString]
Username Optional[OctetString]
Password Optional[OctetString]
SMLVersion Optional[Unsigned8]
}
type SML_PublicOpen_Res ¶
type SML_PublicOpen_Res struct {
CodePage Optional[OctetString]
ClientID Optional[OctetString]
ReqFileID OctetString
ServerID OctetString
RefTime Optional[SML_Time]
SMLVersion Optional[Unsigned8]
}
type SML_Signature ¶
type SML_Signature OctetString
func (SML_Signature) MarshalJSON ¶
func (s SML_Signature) MarshalJSON() ([]byte, error)
type SML_Status ¶
type SML_Status ImplicitChoice
type SML_Timestamp ¶
type SML_Timestamp Unsigned32
type SML_TimestampLocal ¶
type SML_TimestampLocal struct {
Timestamp SML_Timestamp
LocalOffset Integer16
SeasonTimeOffset Integer16
}
type SML_Value ¶
type SML_Value ImplicitChoice
type Unsigned16 ¶
type Unsigned16 uint16
type Unsigned32 ¶
type Unsigned32 uint32
type Unsigned64 ¶
type Unsigned64 uint64
Click to show internal directories.
Click to hide internal directories.