Arduino Function: 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()

Examples

if(data.isError()){

String id = data.get(0);

String error = data.get(2);

 

Serial.println("Error:" + error);

 }

Written by arduino.org