Skip to content
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

Remove duplicated writeUInt8Characteristic function #16

Merged
merged 1 commit into from
Feb 27, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove duplicated writeUInt8Characteristic function
  • Loading branch information
hotchpotch committed Feb 27, 2016
commit b649135ba784fa4e765d033edf0710d2d444440d
7 changes: 0 additions & 7 deletions lib/noble-device.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,6 @@ NobleDevice.prototype.writeUInt8Characteristic = function(serviceUuid, character
this.writeDataCharacteristic(serviceUuid, characteristicUuid, buffer, callback);
};

NobleDevice.prototype.writeUInt8Characteristic = function(serviceUuid, characteristicUuid, value, callback) {
var buffer = new Buffer(1);
buffer.writeUInt8(value, 0);

this.writeDataCharacteristic(serviceUuid, characteristicUuid, buffer, callback);
};

NobleDevice.prototype.writeUInt16LECharacteristic = function(serviceUuid, characteristicUuid, value, callback) {
var buffer = new Buffer(2);
buffer.writeUInt16LE(value, 0);
Expand Down