Arduino Function: Ciao.writeResponse


The writeResponse function is used to send a response to a specific connector request. The request is identified by the id. The id is part of CiaoData object coming from a call to read or write.


writeResponse(connector, id [, param 1] [, param 2] [, param 3])


CiaoData data"restserver");


String id = data.get(0);

String request = data.get(2);

Ciao.writeResponse("restserver", id,"Request received: "+ request);


Written by