RequestData Property
The request data.
Syntax
ANSI (Cross Platform) int GetRequestData(char* &lpRequestData, int &lenRequestData);
int SetRequestData(const char* lpRequestData, int lenRequestData); Unicode (Windows) INT GetRequestData(LPSTR &lpRequestData, INT &lenRequestData);
INT SetRequestData(LPCSTR lpRequestData, INT lenRequestData);
@property (nonatomic,readwrite,assign,getter=requestData,setter=setRequestData:) NSString* requestData; - (NSString*)requestData; - (void)setRequestData:(NSString*)newRequestData;
@property (nonatomic,readwrite,assign,getter=requestDataB,setter=setRequestDataB:) NSData* requestDataB; - (NSData*)requestDataB; - (void)setRequestDataB:(NSData*)newRequestData;
#define PID_COAP_REQUESTDATA 12 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);
Default Value
""
Remarks
When the class is operating in client mode (i.e., the Listening property is disabled), this property specifies the data that should be included in requests sent using Post, Put, or SendCustomRequest.
When the class is operating in server mode (i.e., the Listening property is enabled), this property is populated with the data included in incoming requests (if any) anytime the Request event fires.
This property is not available at design time.
Data Type
Binary String