shamblett / coap

A Coap package for dart
Other
16 stars 13 forks source link

The following exception is reported when I use markObserve() #12

Closed fulmineazz closed 3 years ago

fulmineazz commented 3 years ago

hello @shamblett.The following exception is reported when I use markObserve() log: EXAMPLE - Sending get observable request to wsncoap.org, waiting for responses .... 2020-12-28 10:13:51.714: SEVERE: >> BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512 2020-12-28 10:13:51.727: INFO: >> CoapNetworkUDP - binding to 0.0.0.0 2020-12-28 10:13:51.729: INFO: >> Starting endpoint bound to InternetAddress('139.196.187.107', IPv4) 2020-12-28 10:13:51.750: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 2461, Token: 00005929, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:13:51.752: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:13:51.753: INFO: >> Reliability - Retransmission timeout is 3618 ms 2020-12-28 10:13:51.756: INFO: >> Matcher - Stored open request by KeyID[2461]) + KeyToken[00005929] 2020-12-28 10:13:51.767: INFO: >> CoapNetworkUDP - binding to 0.0.0.0 2020-12-28 10:13:55.378: WARNING: >> Reliability - Retransmission timeout elapsed 2020-12-28 10:13:55.379: WARNING: >> Reliability - Timeout: retransmit message, failed count: 1 message: 2461 2020-12-28 10:13:55.379: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 2461, Token: 00005929, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:13:55.379: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:13:55.379: INFO: >> Reliability - Retransmission timeout is 3616 ms 2020-12-28 10:13:55.379: INFO: >> Matcher - Stored open request by KeyID[2461]) + KeyToken[00005929] Unhandled exception: RangeError (index): Index out of range: no indices are valid: 0

0 _Uint32ArrayView.[] (dart:typed_data-patch/typed_data_patch.dart:4168:7)

1 CoapOption.intValue (package:coap/src/coap_option.dart:49:18)

2 CoapOption.value (package:coap/src/coap_option.dart:108:16)

3 CoapMessage.observe (package:coap/src/coap_message.dart:938:18)

4 CoapUtil.optionsToString (package:coap/src/util/coap_util.dart:183:20)

5 CoapMessage.toString (package:coap/src/coap_message.dart:349:35)

6 CoapResponse.toString (package:coap/src/coap_response.dart:36:60)

7 _StringBase._interpolate (dart:core-patch/string_patch.dart:848:19)

8 CoapMatcher.receiveResponse (package:coap/src/net/coap_matcher.dart:229:54)

9 CoapEndPoint._receiveData (package:coap/src/net/coap_endpoint.dart:137:35)

10 _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)

11 CastStreamSubscription._onData (dart:_internal/async_cast.dart:85:11)

12 _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)

13 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)

14 _BufferingStreamSubscription._add (dart:async/stream_impl.dart:285:7)

15 _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:127:11)

16 _WhereStream._handleData (dart:async/stream_pipe.dart:199:12)

17 _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:157:13)

18 _RootZone.runUnaryGuarded (dart:async/zone.dart:1384:10)

19 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:357:11)

20 _DelayedData.perform (dart:async/stream_impl.dart:611:14)

21 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:730:11)

22 _PendingEvents.schedule. (dart:async/stream_impl.dart:687:7)

23 _microtaskLoop (dart:async/schedule_microtask.dart:41:21)

24 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50:5)

25 _runPendingImmediateCallback (dart:isolate-patch/isolate_patch.dart:118:13)

26 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:169:5)

Process finished with exit code 255

example code: import 'dart:async'; import 'package:coap/coap.dart'; import '../../config/coap_config.dart';

FutureOr main(List args) async { // Create a configuration class. Logging levels can be specified in the // configuration file. final conf = CoapConfig();

// Build the request uri, note that the request paths/query parameters can be changed // on the request anytime after this initial setup. const host = 'wsncoap.org';

final uri = Uri(scheme: 'coap', host: host, port: conf.defaultPort);

// Create the client. // The method we are using creates its own request so we do not // need to supply one. // The current request is always available from the client. final client = CoapClient(uri, conf);

// Adjust the response timeout if needed, defaults to 32767 milliseconds //client.timeout = 10000;

// Create the request for the get request final request = CoapRequest.newGet(); request.addUriPath('obs'); // Mark the request as observable request.markObserve();

client.request = request;

print('EXAMPLE - Sending get observable request to ' '$host, waiting for responses ....'); await client.get();

// Getting responses form the observable resource request.responses.listen((CoapResponse response) { print('EXAMPLE - payload: ${response.payloadString}'); }); }

fulmineazz commented 3 years ago

I change
//final buff = Uint32List.view(valueBytes.buffer); final buff = Uint16List.view(valueBytes.buffer); to solve it, but I ran into another problem: I get response when the resource's state not changes, is it right? Please guide. Thank you. part of log: /Users/richerlink/Flutters/flutter/bin/cache/dart-sdk/bin/dart --enable-asserts --enable-vm-service:63200 /Users/richerlink/Downloads/coap-master/example/lib/src/testserver-example/time_obs_resource.dart Observatory listening on http://127.0.0.1:63200/70oNsa9oCr4=/

lib/src/testserver-example/time_obs_resource.dart: Warning: Interpreting this as package URI, 'package:example/src/testserver-example/time_obs_resource.dart'. EXAMPLE - Sending get observable request to wsncoap.org, waiting for responses .... 2020-12-28 10:55:30.529: SEVERE: >> BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512 2020-12-28 10:55:30.542: INFO: >> CoapNetworkUDP - binding to 0.0.0.0 2020-12-28 10:55:30.544: INFO: >> Starting endpoint bound to InternetAddress('139.196.187.107', IPv4) RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:30.565: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:30.568: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:30.568: INFO: >> Reliability - Retransmission timeout is 3848 ms 2020-12-28 10:55:30.571: INFO: >> Matcher - Stored open request by KeyID[31197]) + KeyToken[0000565f] 2020-12-28 10:55:30.582: INFO: >> CoapNetworkUDP - binding to 0.0.0.0 2020-12-28 10:55:34.424: WARNING: >> Reliability - Retransmission timeout elapsed 2020-12-28 10:55:34.425: WARNING: >> Reliability - Timeout: retransmit message, failed count: 1 message: 31197 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:34.425: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:34.425: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:34.425: INFO: >> Reliability - Retransmission timeout is 4078 ms 2020-12-28 10:55:34.425: INFO: >> Matcher - Stored open request by KeyID[31197]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:34.485: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:32 2020-12-28 10:55:34.486: INFO: >> Matcher - cleaning up KeyID[31197]) 2020-12-28 10:55:34.488: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 31197 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:34.490: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH32: RICH16:26962 2020-12-28 10:55:37.678: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58381, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:37 2020-12-28 10:55:37.678: INFO: >> Matcher - cleaning up KeyID[31197]) 2020-12-28 10:55:37.678: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:37.680: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:37 2020-12-28 10:55:40.543: INFO: >> Start Mark-And-Sweep with 2 entries 2020-12-28 10:55:40.544: INFO: >> Mark-And-Sweep removes KeyID[31197]) 2020-12-28 10:55:40.544: INFO: >> Mark-And-Sweep removes KeyID[58381]) RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:41.496: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:41.497: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 21328, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:41.497: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:41.497: INFO: >> Reliability - Retransmission timeout is 4491 ms 2020-12-28 10:55:41.497: INFO: >> Matcher - Stored open request by KeyID[21328]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:41.543: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 21328, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:37 2020-12-28 10:55:41.543: INFO: >> Matcher - cleaning up KeyID[21328]) 2020-12-28 10:55:41.544: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 21328 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:41.544: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:37 RICH32: RICH16:26962 2020-12-28 10:55:42.691: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58382, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:42 2020-12-28 10:55:42.691: INFO: >> Matcher - cleaning up KeyID[21328]) 2020-12-28 10:55:42.691: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:42.692: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:42 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:44.685: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:44.685: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 23895, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:44.685: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:44.685: INFO: >> Reliability - Retransmission timeout is 4432 ms 2020-12-28 10:55:44.685: INFO: >> Matcher - Stored open request by KeyID[23895]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:44.720: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 23895, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:42 2020-12-28 10:55:44.720: INFO: >> Matcher - cleaning up KeyID[23895]) 2020-12-28 10:55:44.720: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 23895 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:44.720: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:42 RICH32: RICH16:26962 2020-12-28 10:55:47.696: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58383, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:47 2020-12-28 10:55:47.696: INFO: >> Matcher - cleaning up KeyID[23895]) 2020-12-28 10:55:47.696: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:47.696: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:47 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:48.546: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:48.546: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 13282, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:48.546: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:48.546: INFO: >> Reliability - Retransmission timeout is 3053 ms 2020-12-28 10:55:48.546: INFO: >> Matcher - Stored open request by KeyID[13282]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:48.613: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 13282, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:47 2020-12-28 10:55:48.613: INFO: >> Matcher - cleaning up KeyID[13282]) 2020-12-28 10:55:48.613: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 13282 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:48.613: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:47 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:49.697: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:49.697: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 10489, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:49.697: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:49.697: INFO: >> Reliability - Retransmission timeout is 4383 ms 2020-12-28 10:55:49.697: INFO: >> Matcher - Stored open request by KeyID[10489]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:49.733: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 10489, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:47 2020-12-28 10:55:49.733: INFO: >> Matcher - cleaning up KeyID[10489]) 2020-12-28 10:55:49.734: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 10489 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:49.734: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:47 2020-12-28 10:55:50.542: INFO: >> Start Mark-And-Sweep with 6 entries 2020-12-28 10:55:50.542: INFO: >> Mark-And-Sweep removes KeyID[21328]) 2020-12-28 10:55:50.542: INFO: >> Mark-And-Sweep removes KeyID[58382]) 2020-12-28 10:55:50.542: INFO: >> Mark-And-Sweep removes KeyID[23895]) 2020-12-28 10:55:50.542: INFO: >> Mark-And-Sweep removes KeyID[58383]) 2020-12-28 10:55:50.542: INFO: >> Mark-And-Sweep removes KeyID[13282]) 2020-12-28 10:55:50.542: INFO: >> Mark-And-Sweep removes KeyID[10489]) RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:51.725: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:51.725: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 24531, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:51.725: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:51.725: INFO: >> Reliability - Retransmission timeout is 3809 ms 2020-12-28 10:55:51.725: INFO: >> Matcher - Stored open request by KeyID[24531]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:51.765: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 24531, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:47 2020-12-28 10:55:51.766: INFO: >> Matcher - cleaning up KeyID[24531]) 2020-12-28 10:55:51.766: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 24531 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:51.766: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:47 RICH32: RICH16:26962 2020-12-28 10:55:52.700: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58384, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:52 2020-12-28 10:55:52.700: INFO: >> Matcher - cleaning up KeyID[24531]) 2020-12-28 10:55:52.700: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:52.700: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:52 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:54.702: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:54.702: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 27763, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:54.702: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:54.702: INFO: >> Reliability - Retransmission timeout is 3671 ms 2020-12-28 10:55:54.702: INFO: >> Matcher - Stored open request by KeyID[27763]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:54.744: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 27763, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:52 2020-12-28 10:55:54.744: INFO: >> Matcher - cleaning up KeyID[27763]) 2020-12-28 10:55:54.744: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 27763 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:54.744: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:52 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:55.619: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:55.619: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 25924, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:55.619: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:55.619: INFO: >> Reliability - Retransmission timeout is 3623 ms 2020-12-28 10:55:55.619: INFO: >> Matcher - Stored open request by KeyID[25924]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:55.685: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 25924, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:52 2020-12-28 10:55:55.685: INFO: >> Matcher - cleaning up KeyID[25924]) 2020-12-28 10:55:55.685: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 25924 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:55.685: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:52 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:56.739: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:56.739: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 24679, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:56.740: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:56.740: INFO: >> Reliability - Retransmission timeout is 3465 ms 2020-12-28 10:55:56.740: INFO: >> Matcher - Stored open request by KeyID[24679]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:56.778: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 24679, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:52 2020-12-28 10:55:56.779: INFO: >> Matcher - cleaning up KeyID[24679]) 2020-12-28 10:55:56.779: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 24679 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:56.779: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:52 RICH32: RICH16:26962 2020-12-28 10:55:57.721: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58385, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:57 2020-12-28 10:55:57.721: INFO: >> Matcher - cleaning up KeyID[24679]) 2020-12-28 10:55:57.721: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:57.721: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:57 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:58.770: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:58.770: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 8330, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:58.770: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:58.770: INFO: >> Reliability - Retransmission timeout is 4197 ms 2020-12-28 10:55:58.770: INFO: >> Matcher - Stored open request by KeyID[8330]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:58.804: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 8330, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:57 2020-12-28 10:55:58.804: INFO: >> Matcher - cleaning up KeyID[8330]) 2020-12-28 10:55:58.804: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 8330 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:58.804: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:57 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:59.706: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:59.706: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 28694, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:55:59.706: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:55:59.706: INFO: >> Reliability - Retransmission timeout is 3846 ms 2020-12-28 10:55:59.706: INFO: >> Matcher - Stored open request by KeyID[28694]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:55:59.762: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 28694, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:57 2020-12-28 10:55:59.762: INFO: >> Matcher - cleaning up KeyID[28694]) 2020-12-28 10:55:59.762: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 28694 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:55:59.762: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:57 2020-12-28 10:56:00.541: INFO: >> Start Mark-And-Sweep with 8 entries 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[24531]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[58384]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[27763]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[25924]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[24679]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[58385]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[8330]) 2020-12-28 10:56:00.542: INFO: >> Mark-And-Sweep removes KeyID[28694]) RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:01.749: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:01.749: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 22790, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:01.749: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:01.749: INFO: >> Reliability - Retransmission timeout is 3513 ms 2020-12-28 10:56:01.749: INFO: >> Matcher - Stored open request by KeyID[22790]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:01.856: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 22790, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:55:57 2020-12-28 10:56:01.857: INFO: >> Matcher - cleaning up KeyID[22790]) 2020-12-28 10:56:01.857: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 22790 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:01.857: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:55:57 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:02.689: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:02.689: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 29880, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:02.689: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:02.690: INFO: >> Reliability - Retransmission timeout is 4414 ms 2020-12-28 10:56:02.690: INFO: >> Matcher - Stored open request by KeyID[29880]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:02.693: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58386, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:02 2020-12-28 10:56:02.693: INFO: >> Matcher - cleaning up KeyID[29880]) 2020-12-28 10:56:02.693: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 29880 2020-12-28 10:56:02.693: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:02.694: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:02 RICH32: RICH16:26962 2020-12-28 10:56:02.734: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 29880, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:02 2020-12-28 10:56:02.735: INFO: >> Matcher - cleaning up KeyID[29880]) RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:02.735: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:02 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:03.784: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:03.784: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 4342, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:03.784: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:03.784: INFO: >> Reliability - Retransmission timeout is 4230 ms 2020-12-28 10:56:03.784: INFO: >> Matcher - Stored open request by KeyID[4342]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:03.834: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 4342, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:02 2020-12-28 10:56:03.834: INFO: >> Matcher - cleaning up KeyID[4342]) 2020-12-28 10:56:03.834: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 4342 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:03.834: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:02 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:04.727: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:04.727: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 31560, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:04.727: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:04.727: INFO: >> Reliability - Retransmission timeout is 4111 ms 2020-12-28 10:56:04.728: INFO: >> Matcher - Stored open request by KeyID[31560]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:04.766: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 31560, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:02 2020-12-28 10:56:04.766: INFO: >> Matcher - cleaning up KeyID[31560]) 2020-12-28 10:56:04.766: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 31560 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:04.766: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:02 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:05.807: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:05.807: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 21571, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:05.807: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:05.807: INFO: >> Reliability - Retransmission timeout is 3604 ms 2020-12-28 10:56:05.807: INFO: >> Matcher - Stored open request by KeyID[21571]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:05.879: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 21571, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:02 2020-12-28 10:56:05.879: INFO: >> Matcher - cleaning up KeyID[21571]) 2020-12-28 10:56:05.879: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 21571 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:05.879: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:02 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:06.764: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:06.764: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 11610, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:06.764: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:06.764: INFO: >> Reliability - Retransmission timeout is 4063 ms 2020-12-28 10:56:06.765: INFO: >> Matcher - Stored open request by KeyID[11610]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:06.874: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 11610, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:02 2020-12-28 10:56:06.874: INFO: >> Matcher - cleaning up KeyID[11610]) 2020-12-28 10:56:06.874: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 11610 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:06.874: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:02 RICH32: RICH16:26962 2020-12-28 10:56:07.711: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58387, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:07 2020-12-28 10:56:07.711: INFO: >> Matcher - cleaning up KeyID[11610]) 2020-12-28 10:56:07.711: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:07.712: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:07 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:08.860: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:08.860: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 29002, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:08.860: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:08.861: INFO: >> Reliability - Retransmission timeout is 3803 ms 2020-12-28 10:56:08.861: INFO: >> Matcher - Stored open request by KeyID[29002]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:08.898: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 29002, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:07 2020-12-28 10:56:08.898: INFO: >> Matcher - cleaning up KeyID[29002]) 2020-12-28 10:56:08.898: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 29002 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:08.898: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:07 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:09.696: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:09.696: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 7581, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:09.696: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:09.696: INFO: >> Reliability - Retransmission timeout is 3819 ms 2020-12-28 10:56:09.696: INFO: >> Matcher - Stored open request by KeyID[7581]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:09.731: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 7581, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:07 2020-12-28 10:56:09.731: INFO: >> Matcher - cleaning up KeyID[7581]) 2020-12-28 10:56:09.731: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 7581 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:09.731: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:07 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:09.736: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:09.736: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 989, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:09.736: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:09.736: INFO: >> Reliability - Retransmission timeout is 3552 ms 2020-12-28 10:56:09.736: INFO: >> Matcher - Stored open request by KeyID[989]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:09.775: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 989, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:07 2020-12-28 10:56:09.775: INFO: >> Matcher - cleaning up KeyID[989]) 2020-12-28 10:56:09.775: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 989 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:09.775: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:07 2020-12-28 10:56:10.541: INFO: >> Start Mark-And-Sweep with 11 entries 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[22790]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[58386]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[29880]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[4342]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[31560]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[21571]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[11610]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[58387]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[29002]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[7581]) 2020-12-28 10:56:10.541: INFO: >> Mark-And-Sweep removes KeyID[989]) RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:10.839: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:10.839: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 4369, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:10.839: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:10.839: INFO: >> Reliability - Retransmission timeout is 3881 ms 2020-12-28 10:56:10.839: INFO: >> Matcher - Stored open request by KeyID[4369]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:10.907: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 4369, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:07 2020-12-28 10:56:10.907: INFO: >> Matcher - cleaning up KeyID[4369]) 2020-12-28 10:56:10.907: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 4369 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:10.907: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:07 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:11.768: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:11.768: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 7147, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:11.768: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:11.768: INFO: >> Reliability - Retransmission timeout is 3508 ms 2020-12-28 10:56:11.768: INFO: >> Matcher - Stored open request by KeyID[7147]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:11.832: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 7147, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:07 2020-12-28 10:56:11.832: INFO: >> Matcher - cleaning up KeyID[7147]) 2020-12-28 10:56:11.832: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 7147 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:11.833: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:07 RICH32: RICH16:26962 2020-12-28 10:56:12.704: INFO: >> Matcher - received response <<< Response Message >>> Type: 0, Code: 2.05 Content, Id: 58388, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:12 2020-12-28 10:56:12.704: INFO: >> Matcher - cleaning up KeyID[7147]) 2020-12-28 10:56:12.704: INFO: >> Reliability - Response is confirmable, send ACK. RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:12.704: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:12 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:12.882: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:12.883: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 20779, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:12.883: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:12.883: INFO: >> Reliability - Retransmission timeout is 3552 ms 2020-12-28 10:56:12.883: INFO: >> Matcher - Stored open request by KeyID[20779]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:12.922: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 20779, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:12 2020-12-28 10:56:12.923: INFO: >> Matcher - cleaning up KeyID[20779]) 2020-12-28 10:56:12.923: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 20779 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:12.923: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:12 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:13.880: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:13.881: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 26631, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:13.881: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:13.881: INFO: >> Reliability - Retransmission timeout is 3130 ms 2020-12-28 10:56:13.881: INFO: >> Matcher - Stored open request by KeyID[26631]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:13.922: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 26631, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:12 2020-12-28 10:56:13.922: INFO: >> Matcher - cleaning up KeyID[26631]) 2020-12-28 10:56:13.922: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 26631 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:13.922: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:12 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:14.717: SEVERE: >> Re-registering for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:14.717: INFO: >> Reliability - Scheduling transmission for <<< Request Message >>> Type: 0, Code: GET, Id: 12854, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null 2020-12-28 10:56:14.717: INFO: >> Reliability - sending request, failed transmission count: 0 2020-12-28 10:56:14.717: INFO: >> Reliability - Retransmission timeout is 3823 ms 2020-12-28 10:56:14.717: INFO: >> Matcher - Stored open request by KeyID[12854]) + KeyToken[0000565f] RICH32: RICH16:26962 2020-12-28 10:56:14.753: INFO: >> Matcher - received response <<< Response Message >>> Type: 2, Code: 2.05 Content, Id: 12854, Token: 0000565f, Options = [ If-Match : Uri Host : None E-tags : None Uri Port : None Location Paths: Uri Paths : Content-Type : 0 Max Age : 5 Uri Queries : Accept : -1 Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 26962 Size 1 : 0 Size 2 : 0 ], Payload : 10:56:12 2020-12-28 10:56:14.753: INFO: >> Matcher - cleaning up KeyID[12854]) 2020-12-28 10:56:14.753: INFO: >> Reliability - Cancel retransmission for token: 0000565f id: 12854 RICH16:5683 RICH16:5683 RICH16:5683 2020-12-28 10:56:14.753: INFO: >> Scheduling re-registration in 7000 ms for <<< Request Message >>> Type: 0, Code: GET, Id: 31197, Token: 0000565f, Options = [ If-Match : Uri Host : Uri-Host: wsncoap.org E-tags : None Uri Port : 5683 Location Paths: Uri Paths : obs Content-Type : None Max Age : None Uri Queries : Accept : None Location Queries : Proxy Uri : None Proxy Scheme : None Block 1 : None Block 2 : None Observe : 0 Size 1 : 0 Size 2 : 0 ], Payload : null EXAMPLE - payload: 10:56:12

shamblett commented 3 years ago

I can't see this line in the code you have provided -

final buff = Uint16List.view(valueBytes.buffer);

so I'm not sure what this has fixed or why.

The definition of 'change' for an observed resource is defined by the server, not the client see here -


1.4.  Observable Resources

   A CoAP server is the authority for determining under what conditions
   resources change their state and thus when observers are notified of
   new resource states.  The protocol does not offer explicit means for
   setting up triggers or thresholds; it is up to the server to expose
   observable resources that change their state in a way that is useful
   in the application context.

That said it looks as though we are not seeing the completion of registration and continually sending GET requests to re register because of it -

2020-12-28 10:55:34.490: INFO: >> Scheduling re-registration in 7000 ms for

This seems to be because we are not seeing the observe option in the response message although it is present in the log debug output, I'll dig a bit more into this.

shamblett commented 3 years ago

OK, I think I have fixed these two problems, the fixes are on the issue12 branch of the repo, please update your pubspec.yaml to reference this for your coap package and see how you get on now.

fulmineazz commented 3 years ago

I can't see this line in the code you have provided -

  1. I changed the 'intValue' method in coap_option.dart and it worked fine,but i don't know why.
    /// Integer value
    int get intValue {
    if (valueBytes.isEmpty) {
      return 0;
    }
    if (valueBytes.length == 1) {
      return valueBytes[0];
    } else if (valueBytes.length == 2) {
      final buff = Uint16List.view(valueBytes.buffer);
      return buff[0];
    } else {
    //      final buff = Uint32List.view(valueBytes.buffer);
      final buff = Uint16List.view(valueBytes.buffer);
      return buff[0];
    }
    }
  2. The second problem has not been fixed. After I get the first ACK type response, the client still sends the GET request to re register. I used the Copper plug-in on Chorme to simulate the client. After sending a GET request with the observe option 0, the server's first ACK response looks like this-
    Time: 10:50:00
    Type: ACK
    Code: 2.05 Content
    MID: 40323
    Token: 0x16895BA
    Options: Observe: 5418170, Content-Format: 0, Max-Age: 5
    Payload: 10:49:56

    next CON type response from server (then we will get this response every 5 seconds and send ack to server immediately):

    Time: 10:50:01
    Type: CON
    Code: 2.05 Content
    MID: 64122
    Token: 0x16895BA
    Options: Observe: 5418171, Content-Format: 0, Max-Age: 5
    Payload: 10:50:01

    I notice that these responses all contain observe option and there is only one GET request had been sent.

shamblett commented 3 years ago

OK, I made a test from your code above using your test server -

import 'dart:async';
import 'package:coap/coap.dart';
import 'config/coap_config.dart';

FutureOr main() async {
// Create a configuration class. Logging levels can be specified in the
// configuration file.
  final conf = CoapConfig();

// Build the request uri, note that the request paths/query parameters can be changed
// on the request anytime after this initial setup.
  const host = 'wsncoap.org';

  final uri = Uri(scheme: 'coap', host: host, port: conf.defaultPort);

// Create the client.
// The method we are using creates its own request so we do not
// need to supply one.
// The current request is always available from the client.
  final client = CoapClient(uri, conf);

// Adjust the response timeout if needed, defaults to 32767 milliseconds
//client.timeout = 10000;

// Create the request for the get request
  final request = CoapRequest.newGet();
  request.addUriPath('obs');
// Mark the request as observable
  request.markObserve();

  // Getting responses form the observable resource
  request.responses.listen((CoapResponse response) {
    print('EXAMPLE - payload: ${response.payloadString}');
  });

  client.request = request;

  print('EXAMPLE - Sending get observable request to '
      '$host, waiting for responses ....');
  await client.get();
}

When run this gives the following log output -

EXAMPLE - Sending get observable request to wsncoap.org, waiting for responses ....
2020-12-29 11:08:39.659: SEVERE: >> BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
2020-12-29 11:08:39.674: INFO: >> CoapNetworkUDP - binding to 0.0.0.0
2020-12-29 11:08:39.674: INFO: >> Starting endpoint bound to InternetAddress('139.196.187.107', IPv4)
2020-12-29 11:08:39.690: INFO: >> Reliability - Scheduling transmission for
<<< Request Message >>>
Type: 0, Code: GET, Id: 3290, Token: 00001f41,
Options =
[
If-Match :
Uri Host : Uri-Host: wsncoap.org
E-tags :
None
Uri Port : 5683
Location Paths:
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries :
Accept : None
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
],
Payload :
null
2020-12-29 11:08:39.690: INFO: >> Reliability - sending request, failed transmission count: 0
2020-12-29 11:08:39.690: INFO: >> Reliability - Retransmission timeout is 3028 ms
2020-12-29 11:08:39.709: INFO: >> Matcher - Stored open request by KeyID[3290]) + KeyToken[00001f41]
2020-12-29 11:08:39.720: INFO: >> CoapNetworkUDP - binding to 0.0.0.0
2020-12-29 11:08:42.748: WARNING: >> Reliability - Retransmission timeout elapsed
2020-12-29 11:08:42.748: WARNING: >> Reliability - Timeout: retransmit message, failed count: 1 message: 3290
2020-12-29 11:08:42.748: INFO: >> Reliability - Scheduling transmission for
<<< Request Message >>>
Type: 0, Code: GET, Id: 3290, Token: 00001f41,
Options =
[
If-Match :
Uri Host : Uri-Host: wsncoap.org
E-tags :
None
Uri Port : 5683
Location Paths:
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries :
Accept : None
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
],
Payload :
null
2020-12-29 11:08:42.748: INFO: >> Reliability - sending request, failed transmission count: 0
2020-12-29 11:08:42.748: INFO: >> Reliability - Retransmission timeout is 3005 ms
2020-12-29 11:08:42.748: INFO: >> Matcher - Stored open request by KeyID[3290]) + KeyToken[00001f41]
2020-12-29 11:08:45.767: WARNING: >> Reliability - Retransmission timeout elapsed
2020-12-29 11:08:45.767: WARNING: >> Reliability - Timeout: retransmit message, failed count: 1 message: 3290
2020-12-29 11:08:45.767: INFO: >> Reliability - Scheduling transmission for
<<< Request Message >>>
Type: 0, Code: GET, Id: 3290, Token: 00001f41,
Options =
[
If-Match :
Uri Host : Uri-Host: wsncoap.org
E-tags :
None
Uri Port : 5683
Location Paths:
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries :
Accept : None
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
],
Payload :
null
2020-12-29 11:08:45.767: INFO: >> Reliability - sending request, failed transmission count: 0
2020-12-29 11:08:45.767: INFO: >> Reliability - Retransmission timeout is 4148 ms
2020-12-29 11:08:45.767: INFO: >> Matcher - Stored open request by KeyID[3290]) + KeyToken[00001f41]
2020-12-29 11:08:46.100: INFO: >> Matcher - received response
<<< Response Message >>>
Type: 2, Code: 2.05 Content, Id: 3290, Token: 00001f41,
Options =
[
If-Match :
Uri Host : None
E-tags :
None
Uri Port : None
Location Paths:
Uri Paths :
Content-Type : 0
Max Age : 5
Uri Queries :
Accept : -1
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50258
Size 1 : 0
Size 2 : 0
],
Payload :
19:08:50
2020-12-29 11:08:46.100: INFO: >> Matcher - cleaning up KeyID[3290])
2020-12-29 11:08:46.115: INFO: >> Reliability - Cancel retransmission for token: 00001f41 id: 3290
EXAMPLE - payload: 19:08:50
2020-12-29 11:08:48.942: INFO: >> Matcher - received response
<<< Response Message >>>
Type: 0, Code: 2.05 Content, Id: 45037, Token: 00001f41,
Options =
[
If-Match :
Uri Host : None
E-tags :
None
Uri Port : None
Location Paths:
Uri Paths :
Content-Type : 0
Max Age : 5
Uri Queries :
Accept : -1
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50258
Size 1 : 0
Size 2 : 0
],
Payload :
19:08:55
2020-12-29 11:08:48.942: INFO: >> Matcher - cleaning up KeyID[3290])
2020-12-29 11:08:48.942: INFO: >> Reliability - Response is confirmable, send ACK.
EXAMPLE - payload: 19:08:55
2020-12-29 11:08:49.691: INFO: >> Start Mark-And-Sweep with 2 entries
2020-12-29 11:08:49.691: INFO: >> Mark-And-Sweep removes KeyID[3290])
2020-12-29 11:08:49.691: INFO: >> Mark-And-Sweep removes KeyID[45037])
2020-12-29 11:08:51.586: INFO: >> Matcher - received response
<<< Response Message >>>
Type: 0, Code: 2.05 Content, Id: 45037, Token: 00001f41,
Options =
[
If-Match :
Uri Host : None
E-tags :
None
Uri Port : None
Location Paths:
Uri Paths :
Content-Type : 0
Max Age : 5
Uri Queries :
Accept : -1
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50258
Size 1 : 0
Size 2 : 0
],
Payload :
19:08:55
2020-12-29 11:08:51.586: INFO: >> Matcher - cleaning up KeyID[3290])
2020-12-29 11:08:51.586: INFO: >> Reliability - Response is confirmable, send ACK.
EXAMPLE - payload: 19:08:55
2020-12-29 11:08:53.950: INFO: >> Matcher - received response
<<< Response Message >>>
Type: 0, Code: 2.05 Content, Id: 45038, Token: 00001f41,
Options =
[
If-Match :
Uri Host : None
E-tags :
None
Uri Port : None
Location Paths:
Uri Paths :
Content-Type : 0
Max Age : 5
Uri Queries :
Accept : -1
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50258
Size 1 : 0
Size 2 : 0
],
Payload :
19:09:00
2020-12-29 11:08:53.950: INFO: >> Matcher - cleaning up KeyID[3290])
2020-12-29 11:08:53.950: INFO: >> Reliability - Response is confirmable, send ACK.
EXAMPLE - payload: 19:09:00
2020-12-29 11:08:58.952: INFO: >> Matcher - received response
<<< Response Message >>>
Type: 0, Code: 2.05 Content, Id: 45039, Token: 00001f41,
Options =
[
If-Match :
Uri Host : None
E-tags :
None
Uri Port : None
Location Paths:
Uri Paths :
Content-Type : 0
Max Age : 5
Uri Queries :
Accept : -1
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50258
Size 1 : 0
Size 2 : 0
],
Payload :
19:09:05
2020-12-29 11:08:58.952: INFO: >> Matcher - cleaning up KeyID[3290])
2020-12-29 11:08:58.958: INFO: >> Reliability - Response is confirmable, send ACK.
EXAMPLE - payload: 19:09:05
2020-12-29 11:08:59.691: INFO: >> Start Mark-And-Sweep with 3 entries
2020-12-29 11:08:59.691: INFO: >> Mark-And-Sweep removes KeyID[45037])
2020-12-29 11:08:59.691: INFO: >> Mark-And-Sweep removes KeyID[45038])
2020-12-29 11:08:59.691: INFO: >> Mark-And-Sweep removes KeyID[45039])
2020-12-29 11:09:03.945: INFO: >> Matcher - received response
<<< Response Message >>>
Type: 0, Code: 2.05 Content, Id: 45040, Token: 00001f41,
Options =
[
If-Match :
Uri Host : None
E-tags :
None
Uri Port : None
Location Paths:
Uri Paths :
Content-Type : 0
Max Age : 5
Uri Queries :
Accept : -1
Location Queries :
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50258
Size 1 : 0
Size 2 : 0
],
Payload :
19:09:10
2020-12-29 11:09:03.960: INFO: >> Matcher - cleaning up KeyID[3290])
2020-12-29 11:09:03.960: INFO: >> Reliability - Response is confirmable, send ACK.
EXAMPLE - payload: 19:09:10
...............

So we register a the observable then just receive response messages from the server, is this not what you expected?

fulmineazz commented 3 years ago

So we register a the observable then just receive response messages from the server, is this not what you expected?

That's exactly what I want. What puzzles me is that I'm running the same code but the output is not the same as yours... log output:

EXAMPLE - Sending get observable request to wsncoap.org, waiting for responses ....
2020-12-29 19:34:06.988: SEVERE: >> BlockwiseLayer uses MaxMessageSize: 1024 and DefaultBlockSize: 512
2020-12-29 19:34:07.000: INFO: >> CoapNetworkUDP - binding to 0.0.0.0
2020-12-29 19:34:07.002: INFO: >> Starting endpoint bound to InternetAddress('139.196.187.107', IPv4)
2020-12-29 19:34:07.023: INFO: >> Reliability - Scheduling transmission for 
<<< Request Message >>>
Type: 0, Code: GET, Id: 22119, Token: 000028cf, 
Options =
[
If-Match : 
Uri Host : Uri-Host: wsncoap.org
E-tags : 
None
Uri Port : 5683
Location Paths: 
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries : 
Accept : None
Location Queries : 
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
], 
Payload :
null
2020-12-29 19:34:07.025: INFO: >> Reliability - sending request, failed transmission count: 0
2020-12-29 19:34:07.025: INFO: >> Reliability - Retransmission timeout is 3809 ms
2020-12-29 19:34:07.028: INFO: >> Matcher - Stored open request by KeyID[22119]) + KeyToken[000028cf]
2020-12-29 19:34:07.038: INFO: >> CoapNetworkUDP - binding to 0.0.0.0
2020-12-29 19:34:10.839: WARNING: >> Reliability - Retransmission timeout elapsed
2020-12-29 19:34:10.839: WARNING: >> Reliability - Timeout: retransmit message, failed count: 1 message: 22119
2020-12-29 19:34:10.840: INFO: >> Reliability - Scheduling transmission for 
<<< Request Message >>>
Type: 0, Code: GET, Id: 22119, Token: 000028cf, 
Options =
[
If-Match : 
Uri Host : Uri-Host: wsncoap.org
E-tags : 
None
Uri Port : 5683
Location Paths: 
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries : 
Accept : None
Location Queries : 
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
], 
Payload :
null
2020-12-29 19:34:10.840: INFO: >> Reliability - sending request, failed transmission count: 0
2020-12-29 19:34:10.840: INFO: >> Reliability - Retransmission timeout is 3470 ms
2020-12-29 19:34:10.840: INFO: >> Matcher - Stored open request by KeyID[22119]) + KeyToken[000028cf]
2020-12-29 19:34:10.893: INFO: >> Matcher - received response 
<<< Response Message >>> 
Type: 2, Code: 2.05 Content, Id: 22119, Token: 000028cf, 
Options =
[
If-Match : 
Uri Host : None
E-tags : 
None
Uri Port : None
Location Paths: 
Uri Paths : 
Content-Type : 0
Max Age : 5
Uri Queries : 
Accept : -1
Location Queries : 
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50514
Size 1 : 0
Size 2 : 0
], 
Payload :
19:34:06
2020-12-29 19:34:10.894: INFO: >> Matcher - cleaning up KeyID[22119])
2020-12-29 19:34:10.896: INFO: >> Reliability - Cancel retransmission for token: 000028cf id: 22119
2020-12-29 19:34:10.898: INFO: >> Scheduling re-registration in 7000 ms for 
<<< Request Message >>>
Type: 0, Code: GET, Id: 22119, Token: 000028cf, 
Options =
[
If-Match : 
Uri Host : Uri-Host: wsncoap.org
E-tags : 
None
Uri Port : 5683
Location Paths: 
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries : 
Accept : None
Location Queries : 
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
], 
Payload :
null
EXAMPLE - payload: 19:34:06
2020-12-29 19:34:11.546: INFO: >> Matcher - received response 
<<< Response Message >>> 
Type: 0, Code: 2.05 Content, Id: 39745, Token: 000028cf, 
Options =
[
If-Match : 
Uri Host : None
E-tags : 
None
Uri Port : None
Location Paths: 
Uri Paths : 
Content-Type : 0
Max Age : 5
Uri Queries : 
Accept : -1
Location Queries : 
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 50514
Size 1 : 0
Size 2 : 0
], 
Payload :
19:34:11
2020-12-29 19:34:11.546: INFO: >> Matcher - cleaning up KeyID[22119])
2020-12-29 19:34:11.546: INFO: >> Reliability - Response is confirmable, send ACK.
2020-12-29 19:34:11.548: INFO: >> Scheduling re-registration in 7000 ms for 
<<< Request Message >>>
Type: 0, Code: GET, Id: 22119, Token: 000028cf, 
Options =
[
If-Match : 
Uri Host : Uri-Host: wsncoap.org
E-tags : 
None
Uri Port : 5683
Location Paths: 
Uri Paths : obs
Content-Type : None
Max Age : None
Uri Queries : 
Accept : None
Location Queries : 
Proxy Uri : None
Proxy Scheme : None
Block 1 : None
Block 2 : None
Observe : 0
Size 1 : 0
Size 2 : 0
], 
Payload :
null
EXAMPLE - payload: 19:34:11
shamblett commented 3 years ago

Are you sure you are using the issue12 branch of the repo? Please check your pubspec.yaml and do pub get/upgrade this should give you a commit hash for the branch head please check this against the repo.

fulmineazz commented 3 years ago

Are you sure you are using the issue12 branch of the repo? Please check your pubspec.yaml and do pub get/upgrade this should give you a commit hash for the branch head please check this against the repo.

Thank you for your reply. I used the wrong branch at the beginning😅. The problem was solved perfectly and thanks again.

shamblett commented 3 years ago

Fixes identified above incorporated and package re published at version 2.0.1