Reference   Language | Libraries | Comparison | Changes

Ciao

Ciao.isEmpty()

Description

The isEmpty function enables the user to check if the CiaoData object is empty. Returns true if the operation isn’t yet completed by the connector, or false if the operation is completed and data is available.

Syntax

data.isEmpty();

Returns

True in case of empty data, 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.