Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxMessageSize message.OptionID = 2 BlockWiseTransfer message.OptionID = 4 )
View Source
const ( AlternativeAddress message.OptionID = 2 HoldOff message.OptionID = 4 )
View Source
const (
BadCSMOption message.OptionID = 2
)
Signal Abort Option IDs
+-----+---+---+---------------------+--------+--------+---------+ | No. | C | R | Name | Format | Length | Default | +-----+---+---+---------------------+--------+--------+---------+ | 2 | | | Bad-CSM-Option | uint | 0-2 | (none) | +-----+---+---+---------------------+--------+--------+---------+ C=Critical, R=Repeatable
View Source
const (
Custody message.OptionID = 2
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Token []byte Payload []byte Options message.Options // Options must be sorted by ID Code codes.Code }
TcpMessage is a CoAP MessageBase that can encode itself for Message transport.
func (*Message) UnmarshalWithHeader ¶
func (m *Message) UnmarshalWithHeader(header MessageHeader, data []byte) (int, error)
Click to show internal directories.
Click to hide internal directories.