Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local forward = "forward"
- local back = "back"
- local right = "right"
- local left = "left"
- while true do
- http.request( "https://api.thingspeak.com/apps/thinghttp/send_request?api_key=RZO9FEYJHYKDFWZX" )
- event, url, handle = os.pullEvent( "http_success" )
- stri = handle.readAll()
- k = string.sub(stri,2,string.len(stri)-1)
- local file = io.open("program", "w")
- file:write(k)
- file:close()
- shell.run("program")
- http.request( "https://api.thingspeak.com/apps/thinghttp/send_request?api_key=IFCX2RBYP668QO5Q" )
- handle.close()
- print ("End")
- os.sleep(15)
- print ("")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement