Go Down

Topic: Library "Ciao" connector mqtt read action (Read 572 times) previous topic - next topic

IoTCaVico

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:

Code: [Select]
Ciao.read("mqtt","v1/ec0.../things/97e63.../cmd/7",value);

I can't read data with Ciao.read:

Code: [Select]
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.

IoTCaVico

Am I the only one who uses the CIAO library?

I use an ARDUINO INDUSTRIAL 101.
Does anyone know an alternative to the CIAO library?

Go Up