You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When reading the LWM2M specification about SenML-CBOR representation of TIME datatype, I see :
Data Type
Text Format
TLV Format
JSON SenML Format
CBOR SenML Format
Time
Represented as an ASCII integer. For example, 1476186613 seconds since Jan 01 1970, which represents Tuesday, 11-Oct-16 11:50:13 UTC, are represented as the ASCII string "1476186613", which has 10 characters/bytes.
Same representation as Integer.
Represented as a number.
👉 Represented as date/time strings, as defined in Section 2.4.1 of [RFC7049].
Represented as an ASCII integer. For example, 1476186613 seconds since Jan 01 1970, which represents Tuesday, 11-Oct-16 11:50:13 UTC, are represented as the ASCII string "1476186613", which has 10 characters/bytes.
Same representation as Integer.
Represented as a number.
👉 Represented as an unsigned integer or a date/time string, as defined in Section 2.4.1 of [RFC7049].
I saw some contradiction with CBOR and SenML RFC but maybe I just missed the point.
About CBOR RFC7049, the specification says about Date and Time:
Tag value 1 is for numerical representation of seconds relative to
1970-01-01T00:00Z in UTC time. (For the non-negative values that the
Portable Operating System Interface (POSIX) defines, the number of
seconds is counted in the same way as for POSIX "seconds since the
epoch" [TIME_T].) The tagged item can be a positive or negative
integer (major types 0 and 1), or a floating-point number (major type
7 with additional information 25, 26, or 27). Note that the number
can be negative (time before 1970-01-01T00:00Z) and, if a floating-
point number, indicate fractional seconds.
So it allows Floating point number and negative one, so is there any reason to limit it to unsigned integer ?
About SenML-CBOR RFC8428, there is no value of type date/time, see
That sounds contradictory with "Represented as date/time strings, as defined in Section 2.4.1 of [RFC7049]." from C.2-Data Type Mapping of LWM2M specification.
The text was updated successfully, but these errors were encountered:
When reading the LWM2M specification about SenML-CBOR representation of TIME datatype, I see :
(from : LWM2M-v1.1.1@core§C.2-Data Type Mapping)
(from : LWM2M-v1.2@core§C.2-Data Type Mapping)
I saw some contradiction with CBOR and SenML RFC but maybe I just missed the point.
About CBOR RFC7049, the specification says about Date and Time:
So it allows Floating point number and negative one, so is there any reason to limit it to unsigned integer ?
About SenML-CBOR RFC8428, there is no value of type date/time, see
And LWM2M specification says that TIME value should be encoded using
v
which should be a number, see LWM2M-v1.2@core§SenML-JSON-format-and-descriptionThat sounds contradictory with "Represented as date/time strings, as defined in Section 2.4.1 of [RFC7049]." from C.2-Data Type Mapping of LWM2M specification.
The text was updated successfully, but these errors were encountered: