Documentation ¶
Index ¶
Constants ¶
View Source
const ( MESSAGE_LEN13_BASE = 13 MESSAGE_LEN14_BASE = 269 MESSAGE_LEN15_BASE = 65805 MESSAGE_MAX_LEN = 0x7fff0000 // Large number that works in 32-bit builds. )
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 { Code codes.Code Token []byte Payload []byte Options message.Options //Options must be sorted by ID }
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.