IOT REST with PHP