Update
This commit is contained in:
parent
d14a94d75c
commit
ec3d5d1a6e
@ -35,6 +35,15 @@ app.post('/setlight', async function (request, responce) {
|
||||
led_array.color = Number(request.body.color)
|
||||
|
||||
// Now make an api call to the led controller
|
||||
axios({
|
||||
url: 'http://192.168.0.23:5000/setState',
|
||||
method: 'post',
|
||||
data: {
|
||||
power: led_array.power,
|
||||
brightness: led_array.brightness,
|
||||
color: led_array.color
|
||||
}
|
||||
})
|
||||
responce.send({success: true, error: false})
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user