This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Write a code from LM3, to send HTTP commands to a device to control it
#3
(18.09.2015, 06:11)admin Wrote: This should do it. You will see the result of this request in "Logs" tab.

Code:
require('socket.http')
url = 'http://100.100.100.9/send.htm?remote=samsungtv&command=power'
res, err = socket.http.request(url)
log(res, err)

Thank admin. But I did try and error:  Sad
* arg: 1
 * nil
* arg: 2
 * string: No route to host


So why do it?..although, I typed in the address bar of Chorme still works
'http://100.100.100.9/send.htm?remote=samsungtv&command=power'
Please help me...Sad thank all  Heart
Reply


Messages In This Thread
RE: Write a code from LM3, to send HTTP commands to a device to control it - by phongvucba - 21.09.2015, 12:46

Forum Jump: