connection from bike/simulator to client to server
This commit is contained in:
@@ -92,12 +92,13 @@ namespace Client
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
this.stream.BeginRead(this.buffer, 0, this.buffer.Length, new AsyncCallback(OnRead), null);
|
||||
|
||||
}
|
||||
|
||||
private void OnWrite(IAsyncResult ar)
|
||||
{
|
||||
this.stream.EndWrite(ar);
|
||||
Console.WriteLine("wrote some stuff");
|
||||
}
|
||||
|
||||
#region interface
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Hardware;
|
||||
using Hardware.Simulators;
|
||||
using ProftaakRH;
|
||||
|
||||
namespace Client
|
||||
@@ -24,6 +25,11 @@ namespace Client
|
||||
BLEHandler bLEHandler = new BLEHandler(client);
|
||||
|
||||
bLEHandler.Connect();
|
||||
|
||||
//BikeSimulator bikeSimulator = new BikeSimulator(client);
|
||||
|
||||
//bikeSimulator.StartSimulation();
|
||||
|
||||
while (true)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user