CoapMessage
@totemsdk/edge-coap / CoapMessage
Interface: CoapMessage
Properties
messageId
messageId:
number
Message ID for deduplication.
method?
optionalmethod?:CoapMethod
Request method (only for CON/NON requests).
path
path:
string[]
URI path (e.g. ["sensors", "temperature"]).
payload
payload:
Uint8Array
Payload bytes.
receivedAt
receivedAt:
number
Timestamp of receipt.
remote
remote:
object
Remote endpoint.
host
host:
string
port
port:
number
responseCode?
optionalresponseCode?:string
Response code (only for ACK responses).
token
token:
Uint8Array
Token for request/response matching.
type
type:
CoapMessageType
Message type.