-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed get firmware command - Improved bluetooth connection class such that the bluegiga dongle does not be to be connected when the class is created - Added the flush command for the Connection class - Updated the example program to have the get firmware/hardware version command, get battery level command, and connect to either a TappyBLE or TappyUSB - Added a method to convert the UID byte array to a string for the Tag class
- Loading branch information
1 parent
f9e01c1
commit dc0d81e
Showing
23 changed files
with
686 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<Window x:Class="TapTrack.Demo.ConnectWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:local="clr-namespace:TapTrack.Demo" | ||
mc:Ignorable="d" | ||
Title="ConnectWindow" Height="200" Width="300" | ||
Background="{StaticResource LightBackground}" | ||
WindowStartupLocation="CenterScreen"> | ||
<StackPanel Orientation="Vertical" Margin="10" Background="{StaticResource LightBackground}"> | ||
<TextBlock Foreground="White" HorizontalAlignment="Center">Connect to a</TextBlock> | ||
<Button Style="{StaticResource RoundButton}" Click="bleButton_Click">TappyBLE</Button> | ||
<TextBlock Foreground="White" HorizontalAlignment="Center">or</TextBlock> | ||
<Button Style="{StaticResource RoundButton}" Click="usbButton_Click">TappyUSB</Button> | ||
</StackPanel> | ||
</Window> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Windows; | ||
using System.Windows.Controls; | ||
using System.Windows.Data; | ||
using System.Windows.Documents; | ||
using System.Windows.Input; | ||
using System.Windows.Media; | ||
using System.Windows.Media.Imaging; | ||
using System.Windows.Shapes; | ||
using TapTrack.Tcmp.Communication; | ||
|
||
namespace TapTrack.Demo | ||
{ | ||
/// <summary> | ||
/// Interaction logic for ConnectWindow.xaml | ||
/// </summary> | ||
public partial class ConnectWindow : Window | ||
{ | ||
public ConnectWindow() | ||
{ | ||
InitializeComponent(); | ||
} | ||
|
||
public CommunicationProtocol Protocol { get; internal set; } | ||
|
||
private void bleButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.Protocol = CommunicationProtocol.Bluetooth; | ||
this.DialogResult = true; | ||
this.Close(); | ||
} | ||
|
||
private void usbButton_Click(object sender, RoutedEventArgs e) | ||
{ | ||
this.Protocol = CommunicationProtocol.Usb; | ||
this.DialogResult = true; | ||
this.Close(); | ||
} | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.