connection from bike/simulator to client to server

This commit is contained in:
shinichi
2020-09-23 15:05:09 +02:00
parent d5eadbe529
commit c782301cf2
4 changed files with 18 additions and 3 deletions

View File

@@ -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

View File

@@ -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)
{
}