Project: other

JavaScript Learning Note

Physical Computing workshop this week was really worth to record. We learned the idea about Node.js, WebSockets, APIs and how to apply these on the connection between Arduino and web page. Course link:–apis   app.js: select port of Arduino and receive data index.html: connect to the path via socket and get data from port http-server gets ip and changes it in html file (which socket connect to) then other computers will be able to link to our webpage (html file) Based on the application of WebSocket, we are capable to send the data detected by Arduino, displaying… More