-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Notifying LWM2M server periodically with data from client #6
Comments
There are two things:
|
If the value of an observable resource changed from client and then we need to push that new value to mbed server what should be done? This we are trying to do once we receive sensor data after a period of every 15 seconds. |
What kind of problems do you get? |
After some time keeping the application idle, a 502 error is received, even though de-registration is not done. |
Logs please. |
Note also that I added observable resource to example-client: https://github.com/ARMmbed/java-coap/blob/dev/example-client/example-client/src/main/java/com/mbed/coap/example/DeviceEmulator.java#L85 |
We are able to send data continously every 15 seconds. Is there any parameter we need to set so that this happens for atleast, let's say, 30 minutes or one hour, without any interruption? |
Well, just set your scheduler to send notification as often as you need. |
We keep on sending the data every 15 sec. After about 10 minutes or so testing in the mbed server console, clicking the Test Api button keeps on trying to fetch the data for get resources, but with no result. |
Could you attached device logs? |
Now we are using the endpoint name, server key etc. from the security.h file from mbed portal. Is there a way to programmatically create the security.h file or the required keys? |
I'm sure there is a way to make a (bash) script that would do the job automatically. Any collaboration is more than welcome :). |
How do we update the LWM2M server about a change in some sensor value, for example temperature value obtained from device sensors, in the form of endpoints and resources?
The text was updated successfully, but these errors were encountered: