PendingRequestMethod Property

The request's method.

Object Oriented Interface

public function getPendingRequestMethod($pendingrequestindex);

Procedural Interface

ipworksiot_coap_get($res, 5 , $pendingrequestindex);

Default Value

0

Remarks

The request's method.

This property 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

The $pendingrequestindex parameter specifies the index of the item in the array. The size of the array is controlled by the PendingRequestCount property.

This property is read-only and not available at design time.

Data Type

Integer

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