Arduino Function: Ciao.writeResponse

Description

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.

Syntax

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

Examples

CiaoData data =Ciao.read("restserver");

 if(!data.isEmpty()){

String id = data.get(0);

String request = data.get(2);


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

 }

Written by arduino.org