-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: f.bufferToHexString is not a function #30
Comments
@prawee did you found any solution for this issue? |
Use that `/* Original code: https://github.com/cnberg/gps-tracking-nodejs/blob/master/lib/adapters/gt06.js */ exports.protocol = 'GT06'; var adapter = function (device) { this.format = {'start': '(', 'end': ')', 'separator': ''}; /*******************************************
};
}; }; this.request_login_to_device = function () { this.receive_alarm = function (msg_parts) {
}; this.dex_to_degrees = function (dex) { this.get_ping_data = function (msg_parts) {
}; /* SET REFRESH TIME */ |
I'm a new device connected
/home/meteor/gps-tracking-demo/node_modules/gps-tracking/lib/adapters/gt06.js:25
data = f.bufferToHexString(data);
^
TypeError: f.bufferToHexString is not a function
at adapter.parse_data (/home/meteor/gps-tracking-demo/node_modules/gps-tracking/lib/adapters/gt06.js:25:14)
at Device. (/home/meteor/gps-tracking-demo/node_modules/gps-tracking/lib/device.js:31:34)
at Device.emit (events.js:198:13)
at Socket. (/home/meteor/gps-tracking-demo/node_modules/gps-tracking/lib/server.js:133:27)
at Socket.emit (events.js:203:15)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
The text was updated successfully, but these errors were encountered: