added IDataconverter interface
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ProftaakRH
|
||||
namespace Hardware
|
||||
{
|
||||
class Class1
|
||||
class BLEReciever
|
||||
{
|
||||
IDataConverter dataConverter;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,9 +2,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ProftaakRH
|
||||
namespace Hardware.Simulators
|
||||
{
|
||||
class Class1
|
||||
class BikeSimulator
|
||||
{
|
||||
IDataConverter dataConverter;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user