CoAPRequest Type

A pending CoAP request.

Remarks

This type represents a pending CoAP request.

Fields

Method
int

The request's method.

This field reflects the request's method code, which must be a value in the range 0 to 31. The following table provides a (non-exhaustive) list of some of the more common method codes; refer to the IANA's CoAP Method Codes registry for a full list.

Method Code Name
1 GET
2 POST
3 PUT
4 DELETE
5 FETCH
6 PATCH

RemoteHost
String

The remote host associated with the request.

This field reflects the remote host associated with the request. When the class is operating in client mode (i.e., the Listening property is disabled), this is the remote host to which the request was sent; when the class is operating in server mode (i.e., the Listening property is enabled), this is the remote host from which the request was received.

RemotePort
int

The remote port associated with the request.

This field reflects the remote port associated with the request. Refer to the RemoteHost field's documentation for more information.

RequestId
String

The request's Id.

This field reflects the request's class-generated Id.

Token
String

The request's token.

This field reflects the request's token.

TokenB
byte[]

The request's token.

This field reflects the request's token.

URI
String

The request URI.

This field reflects the request's URI.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks IoT 2020 Java Edition - Version 20.0 [Build 8265]