Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2021-1-capstone-design1
/
RIT_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
박권수
2021-05-11 21:49:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bbfe67ffb8a9250473b48a7674e1f049b21f1eaf
bbfe67ff
1 parent
ecb5d359
feat. server on -> all of mqtt client on
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
server/index.js
server/index.js
View file @
bbfe67f
...
...
@@ -5,6 +5,7 @@ const bodyparser = require('koa-bodyparser');
const
Mongoose
=
require
(
'mongoose'
);
const
api
=
require
(
'./src/api'
);
const
updateMedicineInfo
=
require
(
'./src/lib/UpdatingMedicineInfo'
);
const
MqttServer
=
require
(
'./src/util/MqttServer'
);
require
(
'dotenv'
).
config
();
const
{
SERVER_PORT
,
MONGO_URL
}
=
process
.
env
;
...
...
@@ -31,4 +32,5 @@ app.use(router.routes()).use(router.allowedMethods());
app
.
listen
(
SERVER_PORT
,
()
=>
{
console
.
log
(
'\x1b[1;36mPORT : '
,
SERVER_PORT
,
'is connected\x1b[0m'
);
MqttServer
.
on
();
})
\ No newline at end of file
...
...
Please
register
or
login
to post a comment