|
|
|
|
@ -60,7 +60,7 @@ app.get('/status/:gpio', function (req, res) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
return res.status(500).send('Error');
|
|
|
|
|
} else {
|
|
|
|
|
const status = stdout.match(regex)[1];
|
|
|
|
|
const status = stdout.toString().match(regex)[1];
|
|
|
|
|
|
|
|
|
|
console.log('Status', gpio, stdout);
|
|
|
|
|
return res.status(200).send(status);
|
|
|
|
|
|