Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion ShimmerAPI/ShimmerBLEGrpc/ShimmerBLEServiceImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class ShimmerBLEServiceImpl : ShimmerBLEByteServer.ShimmerBLEByteServerBa
{
readonly string Verisense = "Verisense";
readonly string Shimmer = "Shimmer";
readonly string Shimmer3R = "Shimmer3R";
bool Debug = false;
ConcurrentDictionary<string, BluetoothDevice> BluetoohDeviceMap = new ConcurrentDictionary<string, BluetoothDevice>();
ConcurrentDictionary<string, GattService> ServiceMap = new ConcurrentDictionary<string, GattService>();
Expand Down Expand Up @@ -81,7 +82,14 @@ await stateStatusStream.WriteAsync(new StateStatus
BluetoothUuid TxID;
BluetoothUuid RxID;
BluetoothUuid ServiceID;
if (bluetoothDevice.Name.Contains(Shimmer))

if (bluetoothDevice.Name.Contains(Shimmer3R))
{
TxID = BluetoothUuid.FromGuid(new Guid("65333333-A115-11E2-9E9A-0800200CA102"));
RxID = BluetoothUuid.FromGuid(new Guid("65333333-A115-11E2-9E9A-0800200CA101"));
ServiceID = BluetoothUuid.FromGuid(new Guid("65333333-A115-11E2-9E9A-0800200CA100"));
}
else if (bluetoothDevice.Name.Contains(Shimmer))
{
TxID = BluetoothUuid.FromGuid(new Guid("49535343-8841-43f4-a8d4-ecbe34729bb3"));
RxID = BluetoothUuid.FromGuid(new Guid("49535343-1e4d-4bd9-ba61-23c647249616"));
Expand Down
Loading