Comments (2)
Hi Tom,
The behavior you're seeing is related to the "Minimum Period" attribute defined for LwM2M observations (see LwM2M TS 1.0.2, page 19). The default value for this attribute in Anjay is 11, which means that the notifications are throttled to one per one second by default.
You can change that by issuing a Write-Attributes operation from the server side, setting pmin
to 0 for the resource you want to observe more frequently, or by setting the value of the Default Minimum Period resource in the Server object (/1/x/2) to 0 to change the global default. The latter you can achieve by either issuing a Write operation from the server side, or by setting the default_min_period
field in the anjay_server_instance_t
structure passed to anjay_server_object_add_instance()
.
Footnotes
-
This is a bug, by the way, so thanks for helping to discover it. The LwM2M TS explicitly says that the default should be 0. The value of 1 that we used seems to come from some pre-1.0 draft version of the TS and we never noticed the change in later releases. We will fix it for future Anjay releases. ↩
from anjay.
Thank you @kFYatek , with Default Minimum Period resource value set to 0, the notification frequency throttling is gone.
from anjay.
Related Issues (20)
- get string resource length in resource_write callback HOT 4
- Adding recurrent task in anjay's main loop HOT 2
- Requesting new parameter on demo app HOT 1
- How to use NUCLEO-L476rg HOT 2
- Configuration of DTLS using MbedTLS HOT 3
- Wrong CoAP endpoint path for send update HOT 4
- anjay_ongoing_registration_exists() remains true when a bootstrapping is used. HOT 2
- 'binding_str' may be used uninitialized warning HOT 1
- anajy_ipso_basic_sensor.c: update_curr_value HOT 1
- DTLS session resumption HOT 4
- handshake failed with Orange Live Objects HOT 4
- Can't cmake on macOS 12.6 HOT 7
- I can not get queueing to work HOT 7
- Demo client not working: getaddrinfo() error: Name or service not known HOT 2
- Missing python package dependencies HOT 3
- How to determine if client is blocked by a firewall?
- Regression in Anjay 3.4.1 regarding Observe-Composite HOT 3
- invalid critical option in query 0.03 Put: 3 HOT 1
- How to specify an alternate path? HOT 1
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 anjay.