OMA-LWM2M-DevKit icon indicating copy to clipboard operation
OMA-LWM2M-DevKit copied to clipboard

Cancel Observation Test case commands are not working in DEVKIT

Open vsobara opened this issue 9 years ago • 5 comments

Steps to reproduce issue

1.Send Observation and Notification test command from server. 2.Observe that once the observation and notification commands are set on the DEVKIT 3. Try to send 'Cancel observation command'

Actual Result

Cancel observation is not working on DEVKIT client, still DEVKIT responds with notifications.

vsobara avatar Sep 02 '15 06:09 vsobara

Can you please provide the corresponding test case (version and best a copy or summary of what it does exactly)? At the moment, I do not know which cancellation you are using...

mkovatsc avatar Sep 02 '15 13:09 mkovatsc

I hit this issue today. I am cancelling an observation by setting cancel in "WriteAttributes". It keeps notifying after that. Cancel works fine only if I sent RST on a notification.

guruzen avatar Aug 05 '16 07:08 guruzen

How do you cancel with a WriteAttributes? Cancellation requires a CoAP GET request with Observe=1.

mkovatsc avatar Aug 05 '16 07:08 mkovatsc

Hi Matthias,

My bad.. I got mislead by a cancel() method in writeattributes class in leshan. I will go and implement GET with observe=1. I hope devkit handles GET with observe=1. if that works, you should close this issue.

guruzen avatar Aug 05 '16 15:08 guruzen

I realized that older version of lwm2m spec had WriteAttributes with Cancel will actually cancel an observation. It has been changed to CoAP get with observe=1. I had this code working with a few clients in 2014/2015 Test Fests

guruzen avatar Aug 05 '16 16:08 guruzen