Example #1
0
 public async Task <bool> WriteBroadcastPeriod(BluetoothRobotConstants.BROADCAST_PERIOD period)
 {
     return(await base.WriteCharacteristicValueAsync(BluetoothRobotConstants.MODULE_PARAMETER_BROADCAST_PERIOD_CHARACTERISTIC_UUID, new byte[] { (byte)period }));
 }
Example #2
0
 public Task <bool> SetBTBroadcastPeriod(BluetoothRobotConstants.BROADCAST_PERIOD period)
 {
     return(GetService <ModuleParameterService>(BaseService.TYPE.MODULE_PARAMETER).WriteBroadcastPeriod(period));
 }