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
async void BluetoothWatcher_Connected(BluetoothLEAdvertisementWatcher sender, BluetoothLEAdvertisementRecievedArgs) | |
{ | |
_publisher.Stop; | |
_publisher = null; | |
_watcher.Stop; | |
_watcher = null; | |
BluetoothLEAdvertisementDataSection dataSection = args.Advertisement.DataSections.FirstOrDefault(); | |
if(dataSection == default(BluetoothLEAdvertisementDataSection)) | |
return; |
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
private void MessageRecieved(DatagramSocket sender, DatagramSocketMessageRecievedEventArgs args) | |
{ | |
var inputStream = args.GetDataStream(); | |
using (var reader = new StreamReader(inputStream.AsStreamForRead())) | |
{ | |
string data = reader.ReadToEnd(); | |
} | |
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.