ankraft / ACME-oneM2M-CSE

An open source CSE Middleware for Education.
https://acmecse.net/
BSD 3-Clause "New" or "Revised" License
23 stars 16 forks source link

Pending Notifications #95

Closed tsengia closed 1 year ago

tsengia commented 1 year ago

Hi Andreas,

I am wondering if pendingNotifications are supported in ACME? I noticed that it is on your Roadmap, but I'm not sure if that means you are planning to add them, or if you're planning on improving the already existing functionality.

I am doing some testing and getting some odd results, so just wanted to check.

ankraft commented 1 year ago

Tyler,

Sorry, no, pending notifications are not yet implemented. But I have initial ideas, and I plan (so far) to implement them for the next release.

There are two possible situations when a CSE can decide that a notification can become pending: The target is either not reachable (either by getting information from the network or by reachability schedule),or a notification happens outside a notification schedule.

It is very hard to determine whether a target is e2e reachable without access to underlying network functions. That leaves us with schedules, and this is something I plan for the next release. So far ACME does not support the \ resource type, but that is something that is way up on my todo list.

Unfortunately, just reacting on the communication result is not enough here. A notification should be marked as pending before it is sent, not after an attempt failed.

May I ask about your scenario? Do you need pending notifications because your devices are not always reachable?