Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Python API's observe request #306

Merged
merged 1 commit into from
Dec 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/python/ipc_lwm2m_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ class DeleteResponse(IpcResponse):
class ObserveRequest(IpcRequest):
MessageType = "Observe"
SupportedModelPaths = ( "O", "OI", "OIR" )
PathLabel = "Observe"
def add(self, path, value=None):
super(ObserveRequest, self).add(path, None)

Expand Down
3 changes: 3 additions & 0 deletions api/python/tests/test_ipc_lwm2m_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ def test_observe_request_resource(self):
<ID>2</ID>
<Resource>
<ID>3</ID>
<Observe/>
</Resource>
</ObjectInstance>
</Object>
Expand All @@ -552,6 +553,7 @@ def test_observe_request_object_instance(self):
<ID>1</ID>
<ObjectInstance>
<ID>2</ID>
<Observe/>
</ObjectInstance>
</Object>
</Objects>
Expand All @@ -575,6 +577,7 @@ def test_observe_request_object(self):
<Objects>
<Object>
<ID>1</ID>
<Observe/>
</Object>
</Objects>
</Client>
Expand Down