Official Library for Ciao don't match on Arduino Reference page and GitHub repo.

The code at https://www.arduino.cc/en/Reference/CiaoRestServer does not match Ciao/RestServer.ino at master · arduino-libraries/Ciao · GitHub

The code present on Github is the updated one.

Also,
code on the reference page has multiple errors (Thanks to @per1234 for RestServer code on reference page does not match the library's example sketch · Issue #2 · arduino-libraries/Ciao · GitHub):

  • Many instances of elseif used instead of else if
  • splitString() used instead of Ciao.splitString()

Kindly used the below attached code file (directly taken from GitHub repository containing the updates code) and update the code on reference page.

RestServer.ino (3.59 KB)