ResponseOptionValueType Property

The option's value data type.

Syntax

ANSI (Cross Platform)
int GetResponseOptionValueType(int iResponseOptionIndex);
int SetResponseOptionValueType(int iResponseOptionIndex, int iResponseOptionValueType); Unicode (Windows) INT GetResponseOptionValueType(INT iResponseOptionIndex);
INT SetResponseOptionValueType(INT iResponseOptionIndex, INT iResponseOptionValueType);

Possible Values

OVT_STRING(0), 
OVT_UINT(1),
OVT_BINARY(2)
- (int)responseOptionValueType:(int)responseOptionIndex;
- (void)setResponseOptionValueType:(int)responseOptionIndex:(int)newResponseOptionValueType;

Possible Values

OVT_STRING(0), 
OVT_UINT(1),
OVT_BINARY(2)
#define PID_COAP_RESPONSEOPTIONVALUETYPE 31

IPWORKSIOT_EXTERNAL void* IPWORKSIOT_CALL IPWorksIoT_CoAP_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSIOT_EXTERNAL int IPWORKSIOT_CALL IPWorksIoT_CoAP_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
IPWORKSIOT_EXTERNAL int IPWORKSIOT_CALL IPWorksIoT_CoAP_CheckIndex(void *lpObj, int propid, int arridx);

Default Value

0

Remarks

The option's value data type.

This property specifies the data type of the option's ResponseOptionValue. If ResponseOptionNumber 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 ResponseOptionValue.

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 ResponseOptionIndex parameter specifies the index of the item in the array. The size of the array is controlled by the ResponseOptionCount property.

This property is not available at design time.

Data Type

Integer

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