added IDataconverter interface
This commit is contained in:
@@ -2,9 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace ProftaakRH
|
namespace Hardware
|
||||||
{
|
{
|
||||||
class Class1
|
class BLEReciever
|
||||||
{
|
{
|
||||||
|
IDataConverter dataConverter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,10 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace ProftaakRH
|
namespace Hardware.Simulators
|
||||||
{
|
{
|
||||||
class Class1
|
class BikeSimulator
|
||||||
{
|
{
|
||||||
|
IDataConverter dataConverter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,24 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
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.Text;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using Hardware.Simulators;
|
||||||
|
using Hardware;
|
||||||
|
|
||||||
namespace FietsDemo
|
namespace FietsDemo
|
||||||
{
|
{
|
||||||
@@ -12,8 +14,10 @@ namespace FietsDemo
|
|||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
foo foo = new foo();
|
foo foo = new foo();
|
||||||
BLEReceiver bLEReceiver = new BLEReceiver(foo);
|
//BLEReceiver bLEReceiver = new BLEReceiver(foo);
|
||||||
bLEReceiver.ConnectToBLE();
|
|
||||||
|
|
||||||
|
//bLEReceiver.ConnectToBLE();
|
||||||
Console.Read();
|
Console.Read();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user