Need help on my LED REST API
I would like to seek help on my LED REST API. I have finished constructed my basic REST API for my Raspberry PI. What I'm trying to do now is allow my LED to light up whenever I key localhost:3000/7/1 and key localhost:3000/7/0 to switch off. But my problem now is my REST API can't works and hope you guys could help me out with it as soon as possible, thanks in advance, guys.
This is my led_rest_api.js:
Code (Text):
var express = require(‘express’);
var bodyParser = require(‘body-parser’);…
Need help on my LED REST API
See original post by aoiregion
Leave a Reply
You must be logged in to post a comment.