Closed karavolt closed 6 years ago
The payload needs to look like this:
{
type: iotivity.OCPayloadType.PAYLOAD_TYPE_REPRESENTATION,
values: {
serial: 'uuid',
data: {
type: iotivity.OCPayloadType.PAYLOAD_TYPE_REPRESENTATION,
values: {
text: 'hello',
id: 1
}
}
}
}
This iotivity-node test gives you an example of a payload that has object-valued properties.
hi,
i'm trying to send response for get method. but client can't get data property in payload.values.
ex) server send response like this:
payload = { type: iotivity.OCPayloadType.PAYLOAD_TYPE_REPRESENTATION, values: { serial: 'uuid', data: { text: 'hello', id: 1 } } }
then client get responsepayload: { type:4, values: { serial: 'uuid', data: null } }
is this spec problem? or node version problem? client using 7.10.1 version, server using 6.11.4 version.