Edge Java SDK Update multiple properties with writePropertiesVTQ
I try to update multiple thing's properties with writePropertiesVTQ method.
Calling this method I find an error on apllication log
An Invalid Property Value Was Sent To [Random-Integer-Device1 Property: [null]
Thing name, properety name and value type is correct.
I'm setting up name, time, value and quality in ValueCollection and add it in an InfoTable
My code is
InfoTable it = new InfoTable();
NumberPrimitive np = new NumberPrimitive();
np.setValue("1.0");
ValueCollection vc = new ValueCollection();
vc.put("name", new StringPrimitive("propname1"));
vc.put("time", new DatetimePrimitive(new DateTime(new Date().getTime())));
vc.put("value", np);
vc.put("quality", new StringPrimitive(QualityStatus.GOOD.name()));
logger.info("Adding property propName1 with number value 1.0");
it.addRow(vc);
np = new NumberPrimitive();
np.setValue("2.0");
vc.put("name", new StringPrimitive("propname2"));
vc.put("time", new DatetimePrimitive(new DateTime(new Date().getTime())));
vc.put("value", np);
vc.put("quality", new StringPrimitive(QualityStatus.GOOD.name()));
logger.info("Adding property propName2 with number value 2.0");
it.addRow(vc);
client.writePropertiesVTQ(ThingworxEntityTypes.Things, "thingName", it, 10000);
What is wrong? How can I use writePropertiesVTQ? How can I update multiple properties at time with specify device reading time?
Thanks

