Reference   Language | Libraries | Comparison | Changes

Ciao

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])

Returns

None

Example

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);
   }
Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.

Share