Skip to content

Commit 0bc9796

Browse files
authored
Merge pull request #237 from camaraproject/intialEventDoc
Clarification for initialEvent use in documentation
2 parents cf808ea + 9941900 commit 0bc9796

2 files changed

Lines changed: 58 additions & 0 deletions

File tree

code/API_definitions/device-reachability-status-subscriptions.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,26 @@ info:
4343
- the Access Token `sinkCredential` (optionally set by the requester) expiration time has been reached
4444
- the API server has to stop sending notification prematurely
4545
46+
**Note on combined usage of ``initialEvent`` and ``subscriptionMaxEvents``**:
47+
48+
If an event is triggered following ``initialEvent`` set to true,
49+
this event will be counted towards ``subscriptionMaxEvents`` (if provided).
50+
51+
52+
**Clarification on ``initialEvent`` & ``event-type`` behaviour:**
53+
54+
Following table illustrate behaviour regarding event triggering depending on **initial** reachability state of the device:
55+
56+
| subscribed event-type | device reachability status at subscription time | event sent if ``initialEvent`` set to true | Explanation |
57+
| ----------------------| ------------- | --------------- | ---------------|
58+
| reachability-data | Device can use data | Yes | The device is reachable for data, so the event is triggered. |
59+
| reachability-data | Device is disconnected or SMS-only | No | The device cannot use data, so no event is sent. |
60+
| reachability-sms | Device can use data | No | The device can use data, but for thids event is only for SMS. |
61+
| reachability-sms | Device is SMS-only | Yes | The device supports SMS, so the event is triggered. |
62+
| reachability-sms | Device is disconnected | No | The device cannot send SMS, so no event is send. |
63+
| reachability-disconnected | Device can use data or SMS usage | No | The device is reachable, so no "disconnected" event is sent. |
64+
| reachability-disconnected | Device is disconnected | Yes | The device is disconnected, so the event is triggered. |
65+
4666
### Notifications callback
4767
4868
This endpoint describes the event notification received on subscription listener side when the event occurred.

code/API_definitions/device-roaming-status-subscriptions.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,44 @@ info:
4545
- the Access Token `sinkCredential` (optionally set by the requester) expiration time has been reached
4646
- the API server has to stop sending notification prematurely
4747
48+
**Note on combined usage of ``initialEvent`` and ``subscriptionMaxEvents``**:
49+
50+
If an event is triggered following ``initialEvent`` set to true,
51+
this event will be counted towards ``subscriptionMaxEvents`` (if provided).
52+
53+
**Clarification on ``initialEvent`` & ``event-type`` behaviour:**
54+
55+
Following table illustrate behaviour regarding event triggering depending on **initial** roaming state of the device:
56+
57+
| subscribed event-type | device roaming status at subscription time | event sent if ``initialEvent`` set to true |
58+
| ----------------------| ------------- | --------------- |
59+
| roaming-status | Roaming On | Yes |
60+
| roaming-status | Roaming Off | Yes |
61+
| roaming-on | Roaming On | Yes |
62+
| roaming-on | Roaming Off | No |
63+
| roaming-off | Roaming On | No |
64+
| roaming-off | Roaming Off | Yes |
65+
| roaming-change-country | Roaming Off | No(*) |
66+
| roaming-change-country | Roaming On | No(*) |
67+
68+
(*) Use of ``initialEvent`` has no impact on roaming-change-country event-type.
69+
70+
**Clarification on ``roaming-change-country`` event-type:**
71+
72+
``roaming-change-country`` event is sent only when the device stays in roaming situation and change country.
73+
Suppose a device from Germany & all event types subscribed:
74+
75+
- Device moves from Germany to France:
76+
- triggered: roaming-status & roaming-on
77+
- not triggered: roaming-change-country & roaming-off
78+
- Device moves from France to Belgium:
79+
- triggered: roaming-change-country
80+
- not triggered: roaming-status, roaming-on & roaming-off
81+
- Device moves from Belgium back to Germany
82+
- triggered: roaming-status & roaming-off
83+
- not triggered: roaming-on & roaming-change-country
84+
85+
4886
### Notifications callback
4987
5088
This endpoint describes the event notification received on subscription listener side when the event occurred.

0 commit comments

Comments
 (0)