Commit 5fdb9985 by Chavee Issariyapat

update

parent 765e010b
...@@ -37,7 +37,12 @@ console.log(555); ...@@ -37,7 +37,12 @@ console.log(555);
var a = data.topic.split('/'); var a = data.topic.split('/');
var ptext = Buffer.from(data.payload, 'base64').toString(); var ptext = Buffer.from(data.payload, 'base64').toString();
console.log(stopic);
console.log(ptext);
if (stopic && ptext) { if (stopic && ptext) {
console.log(a);
switch (a[0]) { switch (a[0]) {
case 'wf' : case 'wf' :
case 'writefeed' : case 'writefeed' :
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment