File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# ChangeLog
22
3+ * v1.0.5 - Ensure that QOS downgrades are propagated.
4+ * v1.0.4+1 - Map logger names to match DSA log levels.
5+ * v1.0.4 - Forward any errors generated by a ` list ` request to the requester.
6+ * v1.0.3 - Update packages to use hosted rather than repository sources.
37* v1.0.2 - Properly forward QOS level changes to nodes when changing an existing subscription QOS level.
48* v1.0.1 - Fix bug in list subscriptions for nodes which have been removed and recreated throughout subscription's life.
59 This may have prevented list subscriptions from updating full entries.
Original file line number Diff line number Diff line change @@ -265,23 +265,13 @@ class ReqSubscribeController {
265265 }
266266
267267 void listen (callback (ValueUpdate update), int qos) {
268- if (qos < 0 || qos > 3 ) {
269- qos = 0 ;
270- }
271- bool qosChanged = false ;
268+ qos = qos.clamp (0 , 3 );
272269
273- if (callbacks.containsKey (callback)) {
274- callbacks[callback] = qos;
275- qosChanged = updateQos ();
276- } else {
277- callbacks[callback] = qos;
278- if (qos > currentQos) {
279- qosChanged = true ;
280- currentQos = qos;
281- }
282- if (_lastUpdate != null ) {
283- callback (_lastUpdate);
284- }
270+ callbacks[callback] = qos;
271+ bool qosChanged = updateQos ();
272+
273+ if (_lastUpdate != null ) {
274+ callback (_lastUpdate);
285275 }
286276
287277 if (qosChanged) {
Original file line number Diff line number Diff line change @@ -207,9 +207,8 @@ class RespSubscribeController {
207207 ISubscriptionNodeStorage _storage;
208208
209209 void set qosLevel (int v) {
210- if (v < 0 || v > 3 ) v = 0 ;
211- if (_qosLevel == v)
212- return ;
210+ v = v.clamp (0 , 3 );
211+ if (_qosLevel == v) return ;
213212
214213 _qosLevel = v;
215214 if (waitingValues == null && _qosLevel > 0 ) {
Original file line number Diff line number Diff line change 11name : dslink
2- version : 1.0.4+1
2+ version : 1.0.5
33description : " DSA IoT Platform - DSLink SDK for Dart"
44homepage : " http://iot-dsa.org"
55documentation : " https://iot-dsa.github.io/docs/sdks/dart/"
You can’t perform that action at this time.
0 commit comments