freshworkstudio / gps-tracking-nodejs

Let you work with some GPS trackers that connects through tcp.
MIT License
262 stars 161 forks source link

undefined request #13

Closed gyurobenjamin closed 6 years ago

gyurobenjamin commented 6 years ago

The only event what I got is the connected, and the first parameter is undefined.

device.on("connected",function(data){
        console.log("I'm a new device connected");
        console.log(data); // this will be undefined
});
gdespirito commented 6 years ago

Oh, you're right, this is probably a bug. I will look at it. What do you expect data to be? The original message of the device trying to connect?