You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On blend micro i use SimpleChat.ino. On RPI3 i use https://www.npmjs.com/package/blendmicro this library. Blend micro send data to the node, and rpi3 read this data. If i send data to from blendmicro to the node, node not read. On node i use this code
var BlendMicro = require("#{__dirname}/../../");
// var BlendMicro = require("blendmicro");
var bm = new BlendMicro(process.argv[2]);
bm.on("open", function(){
console.log("open");
});
bm.on("data", function(data){
console.log(data.toString());
});
process.stdin.setEncoding("utf8");
// write data from STDIN
process.stdin.on("readable", function(){
var chunk = process.stdin.read();
if(chunk == null) return;
chunk = chunk.toString().replace(/[\r\n]/g, '');
bm.write(chunk);
});
The text was updated successfully, but these errors were encountered:
On blend micro i use SimpleChat.ino. On RPI3 i use https://www.npmjs.com/package/blendmicro this library. Blend micro send data to the node, and rpi3 read this data. If i send data to from blendmicro to the node, node not read. On node i use this code
The text was updated successfully, but these errors were encountered: