When using the cf-client tool, specifying --extended-method OBSERVE
would always result in a stall after the first response due to a missing
NotificationListener that is normally established through the canonical
use of CoapClient.observe(...). The command-line client, however,
manually interacts with request and request.send() which lacked this
glue. This change simply adds that glue manually back in rather than
switching to the canonical approach.
When using the cf-client tool, specifying
--extended-method OBSERVE
would always result in a stall after the first response due to a missing NotificationListener that is normally established through the canonical use of CoapClient.observe(...). The command-line client, however, manually interacts with request and request.send() which lacked this glue. This change simply adds that glue manually back in rather than switching to the canonical approach.Tested against libcoap's coap-server as with: