Merge branch 'master' of ssh://git.maxhunt.design:9999/MAX/IoT-V2-RN

This commit is contained in:
Max 2020-10-13 13:04:31 +01:00
commit 4343d2fe23
2 changed files with 3 additions and 15 deletions

View File

@ -0,0 +1,3 @@
# Full IoT solution to controlling rgb led strips\
### Uses Node main server, flask server for each light node, and a React Native app

View File

@ -50,22 +50,7 @@ app.post('/setlight', async function (request, responce) {
})
.then(() => {
axios({
url: 'http://192.168.0.23:5000/setState',
method: 'post',
data: {
power: led_array.power,
brightness: led_array.brightness,
color: led_array.color
}
})
.catch((err) => {
console.error(err)
responce.send({ success: false, error: "NETWORK" })
})
.then(() => {
responce.send({ success: true, error: false })
})
})
}