Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IsoDepInterface.cs
1using Android.Nfc;
2using Android.Nfc.Tech;
4
6{
12 public class IsoDepInterface(Tag Tag, IsoDep Technology)
13 : NfcInterface(Tag, Technology), IIsoDepInterface
14 {
15 private readonly IsoDep isoDep = Technology;
16
20 public Task<byte[]> GetHighLayerResponse()
21 {
22 return Task.FromResult(this.isoDep.GetHiLayerResponse() ?? throw UnableToReadDataFromDevice());
23 }
24
28 public Task<byte[]> GetHistoricalBytes()
29 {
30 return Task.FromResult(this.isoDep.GetHistoricalBytes() ?? throw UnableToReadDataFromDevice());
31 }
32
38 public async Task<byte[]> ExecuteCommand(byte[] Command)
39 {
40 return await this.isoDep.TransceiveAsync(Command) ?? throw UnableToReadDataFromDevice();
41 }
42 }
43}
ISO DEP interface, for communication with an NFC Tag.