Skip to content
Snippets Groups Projects
Unverified Commit 83de28c9 authored by Marcos Méndez Quintero's avatar Marcos Méndez Quintero Committed by GitHub
Browse files

Update serialserver.js

THe general message Hello World here is not contributing to the general User that sometime can reach this page not nowing what is going on. We have been using this in several offline sites in rural areas and is essential to the technitian to know where is the problem
parent 04036ba3
No related branches found
No related tags found
No related merge requests found
...@@ -101,7 +101,7 @@ parser.on('data', data =>{ ...@@ -101,7 +101,7 @@ parser.on('data', data =>{
// parser.on('data', console.log) // parser.on('data', console.log)
app.get('/', function(req, res) { app.get('/', function(req, res) {
res.send('Hello world'); res.send('Your Server is WORKING FINE! but your Serial Communication with the Device no, plase check conection and documentation to fix this');
sport.write('hello world\n', (err) => { sport.write('hello world\n', (err) => {
if (err) { if (err) {
return console.log('Error on write: ', err.message); return console.log('Error on write: ', err.message);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment