ERROR: the index 'http' does not exist

`server.log(“Device Started”);

function httpGet (url) {
local request = http.get(url);
local response = request.sendsync();
return response;
}

server.log(“start”)
httpGet(“http://www.google.com”)`

this is my source…
always error occurred… at “request.sendsunc()”

ERROR: the index 'http' does not exist

why?..

The http object only exists for agents, not devices. See https://electricimp.com/docs/api/http/.

Sorry. I’m misunderstood…

Thank you.