Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
bc
Commits
af331ea6
Commit
af331ea6
authored
8 years ago
by
wactbprot
Browse files
Options
Downloads
Patches
Plain Diff
index - profibus (pb), add example js for pb
parent
de8eff6b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
index.js
+0
-9
0 additions, 9 deletions
index.js
profibusclient.js
+8
-0
8 additions, 0 deletions
profibusclient.js
with
8 additions
and
9 deletions
index.js
+
0
−
9
View file @
af331ea6
...
@@ -2,7 +2,6 @@ var blessed = require("blessed")
...
@@ -2,7 +2,6 @@ var blessed = require("blessed")
,
_
=
require
(
"
underscore
"
)
,
_
=
require
(
"
underscore
"
)
,
restify
=
require
(
"
restify
"
)
,
restify
=
require
(
"
restify
"
)
,
http
=
require
(
"
http
"
)
,
http
=
require
(
"
http
"
)
,
net
=
require
(
"
net
"
)
,
conf
=
require
(
"
./conf
"
)
,
conf
=
require
(
"
./conf
"
)
,
screen
=
blessed
.
screen
({
,
screen
=
blessed
.
screen
({
smartCSR
:
true
smartCSR
:
true
...
@@ -26,12 +25,6 @@ server.use(function crossOrigin(req,res,next){
...
@@ -26,12 +25,6 @@ server.use(function crossOrigin(req,res,next){
});
});
var
profibus
=
new
net
.
Socket
();
profibus
.
connect
(
conf
.
profibus
.
port
,
conf
.
profibus
.
ip
,
function
()
{
screen
.
title
=
"
profibus online...
"
screen
.
render
();
});
var
hl
=
parseInt
((
screen
.
height
/
3
*
2
)
)
var
hl
=
parseInt
((
screen
.
height
/
3
*
2
)
)
,
wl
=
parseInt
(
screen
.
width
/
3
)
,
wl
=
parseInt
(
screen
.
width
/
3
)
...
@@ -185,8 +178,6 @@ setInterval( function(){
...
@@ -185,8 +178,6 @@ setInterval( function(){
screen
.
title
=
conf
.
basestr_screen
screen
.
title
=
conf
.
basestr_screen
+
"
| profibus online:
"
+
!
profibus
.
destroyed
// <-- request hält profibus (kunbus) wach
+
"
| api server port:
"
+
conf
.
api
.
port
+
"
| api server port:
"
+
conf
.
api
.
port
screen
.
render
();
screen
.
render
();
...
...
This diff is collapsed.
Click to expand it.
profibusclient.js
0 → 100644
+
8
−
0
View file @
af331ea6
var
net
=
require
(
"
net
"
)
,
conf
=
require
(
"
./conf
"
)
var
profibus
=
new
net
.
Socket
();
profibus
.
connect
(
conf
.
profibus
.
port
,
conf
.
profibus
.
ip
,
function
()
{
screen
.
title
=
"
profibus online...
"
screen
.
render
();
});
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment