Reference   Language | Libraries | Comparison | Changes

Ciao

Ciao.isError()

Description

The isError function enables the user to check if the CiaoData object contain an error code. Returns true if the operation failed or false if not. If the operation failed, the error message is available at index #2 trought the get function.

Syntax

data.isError()

Returns

True if an error is detected, false otherwise

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.