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.

Bose Processor
#1
Hello 
trying to control a bose processor ESP 880A via http request to set an input and change volume, 


https://firstandsecondhomes.com/assets/u...v1.1.0.pdf


i used this exemple found and i still get "connexion failed"

http = require('socket.http')

IP = '192.168.5.160'
url = 'http://' .. IP .. ':8090/volume>$20'
res, err = http.request(url)
log(res, err)


any insights ?
Reply
#2
Can you ping this IP from LM (System config > Status > Network utilities)? Can you access this URL from your browser?
The code for setting the volume is incorrect, use this:
Code:
http = require('socket.http')

volume = 20
data = '<volume>' .. volume .. '</volume>'

IP = '192.168.5.160'
url = 'http://' .. IP .. ':8090/volume'

res, err = http.request(url, data)
log(res, err)
Reply


Forum Jump: