Révision b6f7a16a TestXamConnections/TestXamConnections/Device/Barcode/Honeywell/HoneywellBTReader.cs
TestXamConnections/TestXamConnections/Device/Barcode/Honeywell/HoneywellBTReader.cs | ||
---|---|---|
1 | 1 |
using System; |
2 | 2 |
using System.Collections.Generic; |
3 |
using System.Text; |
|
3 | 4 |
using System.Threading.Tasks; |
4 | 5 |
using TestXamConnections.Connection; |
5 | 6 |
using Xamarin.Forms; |
... | ... | |
25 | 26 |
|
26 | 27 |
private void BluetoothDataReceived(object sender, byte[] e) |
27 | 28 |
{ |
28 |
BarcodeDataReceivedEvent.Invoke(this, e); |
|
29 |
string data = Encoding.ASCII.GetString(e); |
|
30 |
BarcodeDataReceivedEvent.Invoke(this, data); |
|
29 | 31 |
} |
30 | 32 |
|
31 |
public async Task<bool> ConnectToBTReaderAsync()
|
|
33 |
public async Task<bool> EnableServiceAsync()
|
|
32 | 34 |
{ |
33 | 35 |
Dictionary<string, string> param = new Dictionary<string, string>() |
34 | 36 |
{ |
... | ... | |
37 | 39 |
bool ret = await ConnectionService.Connect(param); |
38 | 40 |
return ret; |
39 | 41 |
} |
42 |
|
|
43 |
public Task<bool> StartScanAsync() |
|
44 |
{ |
|
45 |
throw new NotImplementedException(); |
|
46 |
} |
|
40 | 47 |
} |
41 | 48 |
} |
Formats disponibles : Unified diff