Révision 6f503a5a
TestXamConnections/TestXamConnections/Device/Barcode/Honeywell/HoneyWellConstants.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Text; |
|
4 |
|
|
5 |
namespace TestXamConnections.Device.Barcode.Honeywell |
|
1 |
namespace TestXamConnections.Device.Barcode.Honeywell |
|
6 | 2 |
{ |
3 |
/// <summary> |
|
4 |
/// Constantes utilisées pour la communication avec le module Barcode Honeywell interne au C-One². |
|
5 |
/// </summary> |
|
7 | 6 |
public static class HoneyWellConstants |
8 | 7 |
{ |
8 |
public const string ACTION_SCAN = "fr.coppernic.intent.action.SCAN"; |
|
9 |
public const string ACTION_STOP_SCAN = "fr.coppernic.intent.action.STOP"; |
|
10 |
public const string ACTION_SCAN_SUCCESS = "fr.coppernic.intent.scansuccess"; |
|
11 |
public const string ACTION_SCAN_ERROR = "fr.coppernic.intent.scanfailed"; |
|
12 |
public const string HONEYWELL_BARCODE = "fr.coppernic.features.barcode.conen"; |
|
9 | 13 |
} |
10 | 14 |
} |
TestXamConnections/TestXamConnections/Device/Barcode/Honeywell/HoneywellBTReader.cs | ||
---|---|---|
13 | 13 |
/// <summary> |
14 | 14 |
/// Événement déclenché à la reception de données par le lecteur de code barre Honeywell. |
15 | 15 |
/// </summary> |
16 |
public EventHandler<byte[]> BarcodeDataReceivedEvent { get; set; }
|
|
16 |
public EventHandler<string> BarcodeDataReceivedEvent { get; set; }
|
|
17 | 17 |
|
18 | 18 |
public HoneywellBTReader(DeviceInfo device) |
19 | 19 |
{ |
TestXamConnections/TestXamConnections/Device/Barcode/Honeywell/HoneywellInternReader.cs | ||
---|---|---|
1 | 1 |
using System; |
2 | 2 |
using System.Threading.Tasks; |
3 | 3 |
using TestXamConnections.Connection; |
4 |
using Xamarin.Forms; |
|
4 | 5 |
|
5 | 6 |
namespace TestXamConnections.Device.Barcode.Honeywell |
6 | 7 |
{ |
7 | 8 |
public class HoneywellInternReader : IBarcodeReader |
8 | 9 |
{ |
9 |
// TODO |
|
10 |
public DeviceInfo DeviceI { get; set; } |
|
11 |
public IConnectionService ConnectionService = DependencyService.Get<IConnectionServiceProvider>().GetConnectionServiceInstance(ConnectionType.Intern); |
|
12 |
|
|
13 |
/// <summary> |
|
14 |
/// Événement déclenché à la reception de données par le lecteur Honeywell . |
|
15 |
/// </summary> |
|
16 |
public EventHandler<string> BarcodeDataReceivedEvent { get; set; } |
|
17 |
|
|
10 | 18 |
public HoneywellInternReader(DeviceInfo deviceI) |
11 | 19 |
{ |
12 |
|
|
20 |
DeviceI = deviceI; |
|
21 |
|
|
13 | 22 |
} |
14 | 23 |
|
15 |
public EventHandler<byte[]> BarcodeDataReceivedEvent { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } |
|
16 |
public DeviceInfo DeviceI { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } |
|
17 |
public IConnectionService ConnectionService { get => throw new NotImplementedException(); set => throw new NotImplementedException(); } |
|
18 |
|
|
19 | 24 |
public Task<bool> ConnectToBTReaderAsync() |
20 | 25 |
{ |
21 | 26 |
throw new NotImplementedException(); |
TestXamConnections/TestXamConnections/Device/Barcode/IBarcodeReader.cs | ||
---|---|---|
8 | 8 |
/// <summary> |
9 | 9 |
/// Événement déclenché à la reception de données par le lecteur de code barre. |
10 | 10 |
/// </summary> |
11 |
public EventHandler<byte[]> BarcodeDataReceivedEvent { get; set; }
|
|
11 |
public EventHandler<string> BarcodeDataReceivedEvent { get; set; }
|
|
12 | 12 |
|
13 | 13 |
Task<bool> ConnectToBTReaderAsync(); |
14 | 14 |
} |
TestXamConnections/TestXamConnections/Device/RFID/Agrident/AgridentConstants.cs | ||
---|---|---|
1 | 1 |
namespace TestXamConnections.Device.RFID.Agrident |
2 | 2 |
{ |
3 | 3 |
/// <summary> |
4 |
/// Constantes utilisées pour la communication avec le module Agrident Wedge. |
|
4 |
/// Constantes utilisées pour la communication avec le module Agrident Wedge interne au C-One².
|
|
5 | 5 |
/// </summary> |
6 | 6 |
public static class AgridentConstants |
7 | 7 |
{ |
... | ... | |
10 | 10 |
public const string ACTION_AGRIDENT_SERVICE_STOP = "fr.coppernic.intent.action.stop.agrident.service"; |
11 | 11 |
public const string ACTION_AGRIDENT_SERVICE_START = "fr.coppernic.intent.action.start.agrident.service"; |
12 | 12 |
public const string ACTION_AGRIDENT_READ = "fr.coppernic.tools.agrident.wedge.READ"; |
13 |
public const string KEY_BARCODE_DATA = "BarcodeData"; |
|
14 | 13 |
public const string AGRIDENT_WEDGE = "fr.coppernic.tools.cpcagridentwedge"; |
15 | 14 |
} |
16 | 15 |
} |
TestXamConnections/TestXamConnections/ViewModels/TeoDeviceViewModel.cs | ||
---|---|---|
91 | 91 |
{ |
92 | 92 |
// Appel au Balance provider pour récupérer l'item TeoBalancea avec les fonctions d'initiation |
93 | 93 |
TeoScale = BalanceProvider.GetBalance(Balance.TeoBalance, ConnectionType.Bluetooth, device); |
94 |
TeoScale.SendCommandAsync(TeoConstants.TeoCommandType.EmissionPoids) |
|
94 | 95 |
Init(); |
95 | 96 |
} |
96 | 97 |
|
Formats disponibles : Unified diff