Reference   Language | Libraries | Comparison | Changes

Ciao

Ciao.get()

Description

The get function returns a string used to extract data from the CiaoData object. CiaoData could contains more than one information and all of these informations are accessible trought the index parameter. Data and informations extracted and the index number depends on how the specified connector is implemented. See Connectors to know the meaning of each index.

Syntax

data.get(index);

Returns

The data at the selected index

Example

if(data.isError()){
  String id = data.get(0);
  String error = data.get(2);
  Serial.println("Error:" + error);
  }
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