160419 build2016 리뷰 2편
160419 build2016 리뷰 2편
황현동 노트북
.net
build
uwp
iotcore
- 160419 build2016 리뷰 2편
RFCOMM
- https://msdn.microsoft.com/en-us/windows/uwp/devices-sensors/send-or-receive-files-with-rfcomm
- Windows.Devices.Bluetooth.Rfcomm
- Bluetooth RFCOMM APIs
- 예제
- 파일 주고 받기
GATT
- https://msdn.microsoft.com/en-us/windows/uwp/devices-sensors/gatt-scenarios
- Windows.Devices.Bluetooth.GenericAttributeProfile
- Bluetooth Generic Attribute Profile (GATT) APIs
- 예제
- 블루투스 데이타 주고받기
- BLE 온도계 제어
- PPT 리모컨
BT LE Advertisements
- https://msdn.microsoft.com/en-us/windows/uwp/devices-sensors/bluetooth
- Windows.Devices.Bluetooth.Advertisement
- Bluetooth Low Energy advertisements using the APIs
using namespace Windows::Storage::Pickers;
using namespace concurrency;
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
create_task(picker->PickSingleFileAsync()).then([this](StorageFile^ file)
{
create_task(file->OpenReadAsync()).then([this](IRandomAccessStreamWithContentType^ stream)
{
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
});
});
개선된 co_await 코드
task<void> ShowImageAsync()
{
auto picker = ref new FileOpenPicker();
picker->FileTypeFilter->Append(L".jpg");
picker->SuggestedStartLocation = PickerLocationId::PicturesLibrary;
auto file = co_await picker->PickSingleFileAsync();
auto stream = co_await file->OpenReadAsync();
auto bitmap = ref new BitmapImage();
bitmap->SetSource(stream);
theImage->Source = bitmap;
}
co_await
로 구현된 소켓 읽기 코드auto tcp_reader(int total) -> future<int>{
char buf[4 * 1024];
auto conn = co_await Tcp::Connect("127.0.0.1", 1337);
for (;;)
{
auto bytesRead = co_await conn.Read(buf, sizeof(buf));
total -= bytesRead;
if (total <= 0 || bytesRead == 0)
return total;
}
}
async def abinary(n):
if n <= 0:
return 1
l = await abinary(n - 1)
r = await abinary(n - 1)
return l + 1 + r
C#
async Task<string> WaitAsynchronouslyAsync() {
await Task.Delay(10000);
return "Finished";
}
C++ 1z
future<string> WaitAsynchronouslyAsync()
{
o_await sleep_for(10ms);
co_return "Finished"s;
}
C++에서 coroutine은 언제부터?
- Visual Studio 2015, Update 2 부터 Experimental 모드로 지원됨.
- 표준화 될때까지는 /await 플래그 필요.
Protecting Premium Video in Windows with PlayReady
http://playready.azurewebsites.net/
PlayReady Tests Server
PlayReady Tests Server
- test content
- license service
- test player
https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/eme/
EME DRM test player
EME DRM test player
http://playerframework.codeplex.com/
PlayReady 지원 플레이어 프로젝트
PlayReady 지원 플레이어 프로젝트
https://msdn.microsoft.com/en-us/library/windows/apps/mt282145.aspx
PlayReady MSDN 소개
PlayReady MSDN 소개
https://code.msdn.microsoft.com/PlayReady-samples-for-124a3738
PlayReady UWP 어플리케이션 샘플
PlayReady UWP 어플리케이션 샘플
todo doc
Customizing Your Device Experience with Assigned Access
https://channel9.msdn.com/Events/Build/2016/P508
https://channel9.msdn.com/Events/Build/2016/P508
Windows SDK for Facebook
https://channel9.msdn.com/Events/Build/2016/P544
https://channel9.msdn.com/Events/Build/2016/P544
Microsoft Translator: Speech Translation Made Easy
https://channel9.msdn.com/Events/Build/2016/P577
https://channel9.msdn.com/Events/Build/2016/P577
Azure Data Lake Deep Dive
https://channel9.msdn.com/Events/Build/2016/P413
https://channel9.msdn.com/Events/Build/2016/P413
HockeyApp for UWP Apps: Beta Distribution, Crash Reporting and User Metrics
https://channel9.msdn.com/Events/Build/2016/P463
https://channel9.msdn.com/Events/Build/2016/P463
Modeling Data for NoSQL Document Databases
https://channel9.msdn.com/Events/Build/2016/P468
https://channel9.msdn.com/Events/Build/2016/P468
Selecting the Right VM Size
https://channel9.msdn.com/Events/Build/2016/P523
https://channel9.msdn.com/Events/Build/2016/P523
Native iOS, Android, & Windows Apps from C# and XAML with Xamarin.Forms
https://channel9.msdn.com/Events/Build/2016/P548
https://channel9.msdn.com/Events/Build/2016/P548
OneDrive API – Overview, What's New, and Scenarios
https://channel9.msdn.com/Events/Build/2016/P559
https://channel9.msdn.com/Events/Build/2016/P559
What's New with Microsoft Graph SDKs
https://channel9.msdn.com/Events/Build/2016/P563
https://channel9.msdn.com/Events/Build/2016/P563
Introducing the File Picker for OneDrive and OneDrive for Business
https://channel9.msdn.com/Events/Build/2016/P565
https://channel9.msdn.com/Events/Build/2016/P565
Microsoft Graph Overview
https://channel9.msdn.com/Events/Build/2016/P569
https://channel9.msdn.com/Events/Build/2016/P569
Introduction to Azure Table Storage
https://channel9.msdn.com/Events/Build/2016/P582
https://channel9.msdn.com/Events/Build/2016/P582
Universal App Model Overview: What's New in the UWP App Model
https://channel9.msdn.com/Events/Build/2016/B809
https://channel9.msdn.com/Events/Build/2016/B809
What's New in Windows UI/UX for Universal Windows Platform (UWP) Apps
https://channel9.msdn.com/Events/Build/2016/B853
https://channel9.msdn.com/Events/Build/2016/B853
Linux Command Line on Windows
https://channel9.msdn.com/Events/Build/2016/C906
https://channel9.msdn.com/Events/Build/2016/C906
SQL Database Technologies for Developers
https://channel9.msdn.com/Events/Build/2016/B814
https://channel9.msdn.com/Events/Build/2016/B814
Using HockeyApp with Xamarin Apps
https://channel9.msdn.com/Events/Build/2016/T668-R1
https://channel9.msdn.com/Events/Build/2016/T668-R1
Deep Dive Into IOT Starter Kit App: Architecture and Getting Started on Building Your IOT Solution
https://channel9.msdn.com/Events/Build/2016/T673-R1
https://channel9.msdn.com/Events/Build/2016/T673-R1
Pen and Ink: Inking at the Speed of Thought
https://channel9.msdn.com/Events/Build/2016/B865
https://channel9.msdn.com/Events/Build/2016/B865
Cross-Platform Mobile with Xamarin
https://channel9.msdn.com/Events/Build/2016/B836
https://channel9.msdn.com/Events/Build/2016/B836
Native iOS, Android, & Windows Apps from C# and XAML with Xamarin.Forms
https://channel9.msdn.com/Events/Build/2016/T667-R1
https://channel9.msdn.com/Events/Build/2016/T667-R1
.NET Overview
https://channel9.msdn.com/Events/Build/2016/B891
https://channel9.msdn.com/Events/Build/2016/B891
The Future of C#
https://channel9.msdn.com/Events/Build/2016/B889
https://channel9.msdn.com/Events/Build/2016/B889
Become a Visual Studio 2015 Power User
https://channel9.msdn.com/Events/Build/2016/B819
https://channel9.msdn.com/Events/Build/2016/B819
Developer's Guide to Connecting Devices to Azure IoT
https://channel9.msdn.com/Events/Build/2016/B844
https://channel9.msdn.com/Events/Build/2016/B844
Entity Framework Core 1.0
https://channel9.msdn.com/Events/Build/2016/B852
https://channel9.msdn.com/Events/Build/2016/B852
Windows 10 IoT Core: From Maker to Market
https://channel9.msdn.com/Events/Build/2016/B860
https://channel9.msdn.com/Events/Build/2016/B860
ASP.NET Core Deep Dive into MVC
https://channel9.msdn.com/Events/Build/2016/B812
https://channel9.msdn.com/Events/Build/2016/B812
Building Network-Aware Applications
https://channel9.msdn.com/Events/Build/2016/B828
https://channel9.msdn.com/Events/Build/2016/B828
Deploying ASP.NET Core Applications
https://channel9.msdn.com/Events/Build/2016/B811
https://channel9.msdn.com/Events/Build/2016/B811
todo video
Runtime Editing Tools for XAML
https://channel9.msdn.com/Events/Build/2016/P465
https://channel9.msdn.com/Events/Build/2016/P465
이 글은 Evernote에서 작성되었습니다. Evernote는 하나의 업무 공간입니다. Evernote를 다운로드하세요. |
댓글
댓글 쓰기