bulentv / js_zklib

Attendance Machine Library for NodeJS with a connection to the network using the UDP protocol and port 4370
GNU General Public License v2.0
56 stars 46 forks source link

Can't get result from function #1

Closed creativefull closed 8 years ago

creativefull commented 8 years ago

hi bulentv, i'm using your module, i want to ask why i can't result from callback with all function in this module

this is mycode

var ZK = new ZKLib({
    ip : '192.168.1.202',
    port : 4370,
    // inport: 5200
});

ZK.connect((err, ret) => {
    console.log("connected");
    ZK.serialNumber(function(err, t) {
        console.log(err, t);
    })
})

and i just get result

connected

i'm nothing get result from serialNumber() . thnks for help me :)

bulentv commented 8 years ago

@creativefull,

Could you pull / checkout the dev branch to get some more info about the comms? There should be cmd: and reply: lines out to stdout and let me see those information to work on the issue.

creativefull commented 8 years ago

it works , just uncomment // inport: 5200

thnks