kcoap
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
kcoap
kcoap-coap-message
/
dev.kcoap.coap
/
CoapMessage
/
Builder
Builder
class
Builder
(
source
)
Builds messages; every field has a neutral default.
Members
Constructors
Builder
Link copied to clipboard
constructor
(
)
Properties
code
Link copied to clipboard
var
code
:
CoapCode
message
Id
Link copied to clipboard
var
messageId
:
Int
payload
Link copied to clipboard
var
payload
:
ByteArray
token
Link copied to clipboard
var
token
:
ByteArray
type
Link copied to clipboard
var
type
:
CoapMessageType
Functions
build
Link copied to clipboard
fun
build
(
)
:
CoapMessage
options
Link copied to clipboard
fun
options
(
block
:
OptionSet.Builder
.
(
)
->
Unit
)
:
CoapMessage.Builder
Changes the options in place.
payload
Link copied to clipboard
fun
payload
(
text
:
String
)
:
CoapMessage.Builder
replace
Options
Link copied to clipboard
fun
replaceOptions
(
newOptions
:
OptionSet
)
:
CoapMessage.Builder