Skip to content
Snippets Groups Projects
Commit 152f69f6 authored by jkerdreu's avatar jkerdreu
Browse files

Fix unsupported*


git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Java/branches/0.7@3077 b32b6428-25c9-4566-ad07-03861ab6144f
parent e3641ae7
No related branches found
No related tags found
No related merge requests found
......@@ -198,9 +198,12 @@ public class Engine extends Thread {
if (dev.getSchema()!=null) body.put("schema", dev.getSchema());
if (dev.getGroupID() != null) body.put("group_id", dev.getGroupID());
body.put("unsupportedMethods", dev.getUnsupportedMethods());
body.put("unsupportedAttributes", dev.getUnsupportedAttributes());
body.put("unsupportedNotifications", dev.getUnsupportedNotifications());
if (dev.getUnsupportedMethods().isEmpty() == false)
body.put("unsupported_methods", dev.getUnsupportedMethods());
if (dev.getUnsupportedAttributes().isEmpty() == false)
body.put("unsupported_attributes", dev.getUnsupportedAttributes());
if (dev.getUnsupportedNotifications().isEmpty() == false)
body.put("unsupported_notifications", dev.getUnsupportedNotifications());
Message reply = factory.buildMSG(dev, Arrays.asList(msg.getSource()), MessageType.REPLY, msg.getAction());
reply.setBodyAsMap(body);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment