kaeverens / waterbot

a robot for watering plants
The Unlicense
0 stars 0 forks source link

add ability to read bot state from serial to www interface #19

Closed kaeverens closed 3 years ago

kaeverens commented 3 years ago

the www directory contains a node.js server. when it is booted, it should connect to serial through /dev/USB0 or whatever is found.

anything received through that interface should be interpreted and acted on.

to test it, the "bot.state" value should be set when www receives a "setState: 1" command from serial.

this value should then be sent to the listening browser so the user can see the new state