Skip to content

Commit

Permalink
#8: Incorrect link objects are implicitly sent on update
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernard31 committed Mar 27, 2015
1 parent b409bea commit 1fd2cda
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,8 @@ public void visit(final UpdateRequest request) {
coapRequest.getOptions().addUriQuery("b=" + bindingMode.toString());

LinkObject[] linkObjects = request.getObjectLinks();
String payload;
if (linkObjects == null)
payload = LinkObject.serialyse(LinkFormatHelper.getClientDescription(client.getObjectEnablers(), null));
else
payload = LinkObject.serialyse(linkObjects);
coapRequest.setPayload(payload);
coapRequest.setPayload(LinkObject.serialyse(linkObjects));
}

@Override
Expand Down

0 comments on commit 1fd2cda

Please sign in to comment.