Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
flowagent
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node-red
flowagent
Commits
741d27fa
Commit
741d27fa
authored
Nov 11, 2019
by
Chavee Issariyapat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
a4eb9e32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
coordinator.js
+4
-2
No files found.
coordinator.js
View file @
741d27fa
...
@@ -44,12 +44,14 @@ const Coordinator = function(param={}) {
...
@@ -44,12 +44,14 @@ const Coordinator = function(param={}) {
});
});
this
.
localserver
.
on
(
'clientPublished'
,
function
(
packet
,
client
){
this
.
localserver
.
on
(
'clientPublished'
,
function
(
packet
,
client
){
let
deviceid
=
client
.
id
.
split
(
':'
)[
0
];
console
.
log
(
'client published'
,
client
.
id
);
console
.
log
(
'client published'
,
client
.
id
);
let
tap_topic
=
`@tap/shadow/update/
${
client
.
id
}
:
${
client
.
token
}
`
;
let
tap_topic
=
`@tap/shadow/update/
${
device
id
}
:
${
client
.
token
}
`
;
let
msg
=
packet
.
payload
.
toString
();
let
msg
=
packet
.
payload
.
toString
();
that
.
remoteclient
.
publish
(
packet
.
topic
,
msg
)
that
.
remoteclient
.
publish
(
tap_
topic
,
msg
)
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment