简体   繁体   English

在 CoAP oneM2M 请求中 filterCriter.attributes 是如何编码的?

[英]how are filterCriter.attributes encoded in a CoAP oneM2M request?

In the oneM2M HTTP protocol binding spec (TS-0009) it says:在 oneM2M HTTP 协议绑定规范 (TS-0009) 中,它说:

Any of the short names listed in table 6.2.2.2-1, with the exception of 'atr', may be used in the query-string.表 6.2.2.2-1 中列出的任何短名称(“atr”除外)都可以在查询字符串中使用。 The short name 'atr' itself is not used.不使用短名称“atr”本身。 Instead, any of the resource attribute short names as listed in tables 8.2.3-1 to 8.2.3-5 in oneM2M TS-0004 [3] may be used in the query-string in representations of attname=attvalue expressions...相反,oneM2M TS-0004 [3] 中的表 8.2.3-1 到 8.2.3-5 中列出的任何资源属性短名称都可以在查询字符串中使用 attname=attvalue 表达式的表示...

However, there is no mention of how the key/value pairs in filterCriteria.attribute are supposed to be encoded in a CoAP request (eg, in TS-0008).然而,没有提到应该如何在 CoAP 请求中(例如,在 TS-0008 中)对filterCriteria.attribute中的键/值对进行编码。

Is this specified somewhere?这是在某处指定的吗?

"atr", ie. “atr”,即。 the resource attributes in a query, are part of the Filter Criteria (see TS-0004, section 7.3.3.17.9).查询中的资源属性是过滤条件的一部分(参见 TS-0004,第 7.3.3.17.9 节)。 Filter Criteria elements are encoded in the CoAP uri-query option (see TS-0008, the last paragraph of section "6.2.2.3 URI Options").过滤条件元素在 CoAP uri-query选项中编码(参见 TS-0008,“6.2.2.3 URI 选项”部分的最后一段)。

See also IETF RFC 7252, section 6.5 , which step 8, defines how to encode key/value pairs in the uri-query option.另请参阅IETF RFC 7252,第 6.5 节,其中第 8 步定义了如何在uri-query选项中对键/值对进行编码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM