【发布时间】:2021-08-31 13:57:12
【问题描述】:
我想从 Cumulocity 的操作中删除一个属性。我使用以下代码:
private final DeviceControlApi deviceControl;
OperationRepresentation operation = deviceControl.getOperation(new GId("some_op_id"));
operation.removeProperty("the_property_to_be_removed");
deviceControl.update(operation);
但是在执行这段代码之后,属性仍然存在。
从操作中删除属性的正确方法是什么?
【问题讨论】:
标签: properties operation cumulocity