requestOptionValueType (property)
The option's value data type.
Syntax
- (int)requestOptionValueType:(int)requestOptionIndex; - (void)setRequestOptionValueType:(int)requestOptionIndex:(int)newRequestOptionValueType;
/* Possible Values */
OVT_STRING(0),
OVT_UINT(1),
OVT_BINARY(2)
public func requestOptionValueType(requestOptionIndex: Int32) throws -> CoapRequestOptionValueTypes
public func setRequestOptionValueType(requestOptionIndex: Int32, newRequestOptionValueType: CoapRequestOptionValueTypes) throws -> Void
public enum CoapRequestOptionValueTypes : Int32 { case ovtString = 0 case ovtUInt = 1 case ovtBinary = 2 }
Default Value
0
Remarks
The option's value data type.
This property specifies the data type of the option's RequestOptionValue. If RequestOptionNumber is set to a recognized value (refer to the table in its documentation), this property will automatically be set to the correct value. The table below shows the possible value types, their descriptions, and how to format the data assigned to RequestOptionValue.
Type | Description | Value Format |
ovtString (0) (default) | String | String |
ovtUInt (1) | Unsigned integer | 0 to 4294967295 |
ovtBinary (2) | Binary data | Hex-encoded byte string |
The RequestOptionIndex parameter specifies the index of the item in the array. The size of the array is controlled by the RequestOptionCount property.