}
});
- BluetoothGATTCharacteristic.prototype.readValue = function() {
+ this.readValue = function() {
console.log('Entered BluetoothGATTCharacteristic.readValue()');
xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
}
};
- BluetoothGATTCharacteristic.prototype.writeValue = function() {
+ this.writeValue = function() {
console.log('Entered BluetoothGATTCharacteristic.writeValue()');
xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
}
};
- BluetoothGATTCharacteristic.prototype.addValueChangeListener = function() {
+ this.addValueChangeListener = function() {
console.log('Entered BluetoothGATTCharacteristic.addValueChangeListener()');
xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
return _bluetoothGATTCharacteristicListener.addListener(callback, callArgs);
};
- BluetoothGATTCharacteristic.prototype.removeValueChangeListener = function() {
+ this.removeValueChangeListener = function() {
console.log('Entered BluetoothGATTCharacteristic.removeValueChangeListener()');
var args = AV.validateMethod(arguments, [{
//address_ is needed to control if device is still connected
var address_ = address;
- BluetoothGATTDescriptor.prototype.readValue = function() {
+ this.readValue = function() {
console.log('Entered BluetoothGATTDescriptor.readValue()');
xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);
}
};
- BluetoothGATTDescriptor.prototype.writeValue = function() {
+ this.writeValue = function() {
console.log('Entered BluetoothGATTDescriptor.writeValue()');
xwalk.utils.checkPrivilegeAccess4Ver("2.4", Privilege.BLUETOOTH, Privilege.BLUETOOTH_ADMIN);