diff --git a/ProftaakRH/BLEReciever.cs b/ProftaakRH/BLEReciever.cs index 29cd2ec..1105362 100644 --- a/ProftaakRH/BLEReciever.cs +++ b/ProftaakRH/BLEReciever.cs @@ -2,9 +2,10 @@ using System.Collections.Generic; using System.Text; -namespace ProftaakRH +namespace Hardware { - class Class1 + class BLEReciever { + IDataConverter dataConverter; } } diff --git a/ProftaakRH/BikeSimulator.cs b/ProftaakRH/BikeSimulator.cs index 29cd2ec..4b106bc 100644 --- a/ProftaakRH/BikeSimulator.cs +++ b/ProftaakRH/BikeSimulator.cs @@ -2,9 +2,10 @@ using System.Collections.Generic; using System.Text; -namespace ProftaakRH +namespace Hardware.Simulators { - class Class1 + class BikeSimulator { + IDataConverter dataConverter; } } diff --git a/ProftaakRH/DataConverter.cs b/ProftaakRH/DataConverter.cs index 436d08f..7378fe7 100644 --- a/ProftaakRH/DataConverter.cs +++ b/ProftaakRH/DataConverter.cs @@ -2,9 +2,24 @@ using System.Collections.Generic; using System.Text; -namespace ProftaakRH +namespace Hardware { - class DataConverter + class DataConverter : IDataConverter { + public void Bike(byte[] bytes) + { + throw new NotImplementedException(); + } + + public void BPM(byte[] bytes) + { + throw new NotImplementedException(); + } + } + + interface IDataConverter + { + void BPM(byte[] bytes); + void Bike(byte[] bytes); } } diff --git a/ProftaakRH/FietsDemo.cs b/ProftaakRH/FietsDemo.cs index b97a0df..d95c24f 100644 --- a/ProftaakRH/FietsDemo.cs +++ b/ProftaakRH/FietsDemo.cs @@ -4,6 +4,8 @@ using System.Collections.Generic; using System.Text; using System.Threading; using System.Threading.Tasks; +using Hardware.Simulators; +using Hardware; namespace FietsDemo { @@ -12,8 +14,10 @@ namespace FietsDemo static void Main(string[] args) { foo foo = new foo(); - BLEReceiver bLEReceiver = new BLEReceiver(foo); - bLEReceiver.ConnectToBLE(); + //BLEReceiver bLEReceiver = new BLEReceiver(foo); + + + //bLEReceiver.ConnectToBLE(); Console.Read(); }