Skip to content

Instantly share code, notes, and snippets.

@addingama
Created June 12, 2015 06:57
Show Gist options
  • Save addingama/c4a646dbafb2dd0ac346 to your computer and use it in GitHub Desktop.
Save addingama/c4a646dbafb2dd0ac346 to your computer and use it in GitHub Desktop.
ESP8266 With Modified Header
-- format program untuk konek ke geeknesia.com
conn=net.createConnection(net.TCP, 0)
conn:connect(3000,'54.179.149.183')
conn:send("GET /api/data?attributes={\"motion\":\""..pinState.."\"}\r\n\r\n")
conn:send("api_key : "..API_KEY.."\r\n\r\n")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment