Comments (3)
The spec say that Time Datatype is :
Unix Time. A signed integer representing the number of seconds since Jan 1 st , 1970 in the UTC time zone.
So Leshan expect that you send time in seconds.
We divide/multiply by 1000 because Java handles timestamp in milliseconds. We do that for TLV and also for other encoding type like TEXT which is used when you made a read on resource.
Your time()
C function should return a time_t
. The unit of time_t
(seconds, milliseconds ...) is not defined by C standard, so it depends of your implementation. I don't really know on this is implemented for your mbed, but generally time_t
is in seconds...
I suspect the problem is at client side.
from leshan.
Thanks!
from leshan.
is this question answered from your point of view? Then it would be great if you would close the issue :-)
from leshan.
Related Issues (20)
- The addition of a resource instance is not detected by LwM2mTestObject (3442) HOT 3
- Precision loss when deserialize BigDecimal with SenMLJSON / old JSON content format. HOT 1
- Fail to decode empty response to a Read operation HOT 4
- How Timstamp should be handled in LWM2M/Leshan ?
- ObservationListener.onError is no longer called on 5.00 responses HOT 5
- Increasing Leshan Contributor Community ?
- Issue with running Contiki-NG with latest release of Leshan (2.0.0-M15) HOT 10
- Plan for 2.0.0-M16 🎯 HOT 9
- How to address a tagged CBOR number value not being deserialized as base time in SenMLRecord? HOT 11
- update from `@CycloneDX/cyclonedx-node-yarn` project HOT 2
- Error log when receiving a Send with an empty payload HOT 4
- error log level on nominal use case ? HOT 8
- Error Code (Object 3 Recsource 11) 3/0/11 HOT 7
- Leshan server demo does not seem to manage observations propertly with clients updated after an IP address change HOT 8
- Read Composite support for timestamped data. HOT 2
- Define a clear Log Level Policy for Leshan.
- Removing presenceService.isClientAwake(destination) check HOT 3
- Plans for Java-Coap implementation for COAPS/DTLS? HOT 6
- NullPointer when a Notification is received while the Registration is being cleaned HOT 3
- The demo server can't communicate with connected devices HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leshan.