Good morning,
my name is Fernando. I'm a plc programmer. I'm trying to implement an iot project, with the CAYENNE platform.
I wrote the data with Ciao.write:
Ciao.read("mqtt","v1/ec0.../things/97e63.../cmd/7",value);
I can't read data with Ciao.read:
CiaoData data = Ciao.read("mqtt","v1/ec0.../things/97e63.../cmd/7");
if (!data.isEmpty()){
String id = data.get(0);
String sender = data.get(1);
String message = data.get(2);
//message.toLowerCase();
Ciao.write("file","provaMQTT.txt", "P3" + message , "w");
}
What's wrong?
Thanks a lot.