1 2 3
play

1. 2. 3. 1. 2. 3. Windows 10 IoT Core Universal Windows - PowerPoint PPT Presentation

1. 2. 3. 1. 2. 3. Windows 10 IoT Core Universal Windows Platform (UWP) Microsoft Azure v7 v8 Windows Embedded Standard One core Multiple SKUs v8. Windows Embedded 1 Windows 10 Windows Embedded Handheld Converged OS kernel Converged


  1. 1. 2. 3.

  2. 1. 2. 3.

  3. Windows 10 IoT Core Universal Windows Platform (UWP) Microsoft Azure

  4. v7 v8 Windows Embedded Standard One core Multiple SKUs v8. Windows Embedded 1 Windows 10 Windows Embedded Handheld Converged OS kernel Converged app model Windows on Devices v6.5 Windows Embedded Compact v7 v201 3

  5.       

  6. $ Premium Entry Device Capabilities

  7. Windows 10 IoT for industry devices Desktop Shell, Win32 apps, Universal Windows Apps and Drivers 1 GB RAM, 16 GB Storage X86 $ Windows 10 IoT for mobile devices Premium Modern Shell, Universal Windows Apps and Drivers 512 MB RAM, 4 GB storage ARM Windows 10 IoT Core No Shell, Universal Windows Apps and Drivers 256MB RAM, 2GB storage X86 or ARM Entry Device Capabilities

  8. ...and many more!

  9.      

  10. Device Connectivity Storage Analytics Presentation & Action Machine Event Hubs SQL Database App Service Learning Table/Blob Stream Service Bus Power BI Storage Analytics External Data Notification DocumentDB HDInsight { } Sources Hubs External Data Data Factory Mobile Apps Sources BizTalk Services

  11.      

  12.         

  13. public async Task SendToTopicAsync(string topic, string message) { var builder = new ServiceBusConnectionStringBuilder(TOPIC_CONNECTION_STRING); builder.TransportType = TransportType.Amqp; var factory = MessagingFactory.CreateFromConnectionString(TOPIC_CONNECTION_STRING); TopicClient client = factory.CreateTopicClient(topic); MemoryStream stream = new MemoryStream(Encoding.UTF8.GetBytes(message)); BrokeredMessage brokeredMessage = new BrokeredMessage(stream); brokeredMessage.Properties["time"] = DateTime.UtcNow; await Task.Run(() => client.Send(brokeredMessage)); client.Close(); factory.Close(); }

  14. public async void ReceiveFromTopicSubscriptionAsync(string topic, string subscription) { var builder = new ServiceBusConnectionStringBuilder(TOPIC_CONNECTION_STRING); builder.TransportType = TransportType.Amqp; var factory = MessagingFactory.CreateFromConnectionString(TOPIC_CONNECTION_STRING); SubscriptionClient client = factory.CreateSubscriptionClient(topic, subscription); while (true) { try { BrokeredMessage request = await Task.Run(() => client.Receive()); request.Complete(); BrokeredMessageReceived(this, new BrokeredMessageReceivedEventArgs(request)); } catch (Exception ex) { // TODO: Handle bad message from WateringCommands topic } } }

  15.          

  16. public async Task SendToPartitionAsync(string message, string partitionId) { var builder = new ServiceBusConnectionStringBuilder(EVENT_HUB_CONN_STRING); builder.TransportType = TransportType.Amqp; var factory = MessagingFactory.CreateFromConnectionString(EVENT_HUB_CONN_STRING); EventHubClient client = factory.CreateEventHubClient(EVENT_HUB_NAME); EventHubSender sender = client.CreatePartitionedSender(partitionId); EventData data = new EventData(Encoding.UTF8.GetBytes(message)); data.Properties["time"] = DateTime.UtcNow; await Task.Run(() => sender.Send(data)); sender.Close(); client.Close(); factory.Close(); }

  17. public async void ReceiveFromPartitionAsync(string partitionId, string eventHubEntity) { var builder = new ServiceBusConnectionStringBuilder(EVENT_HUB_CONN_STRING); builder.TransportType = TransportType.Amqp; var factory = MessagingFactory.CreateFromConnectionString(EVENT_HUB_CONN_STRING); EventHubClient client = factory.CreateEventHubClient(eventHubEntity); EventHubConsumerGroup group = client.GetDefaultConsumerGroup(); EventHubReceiver receiver = group.CreateReceiver(partitionId); while (true) { EventData data = await Task.Run(() => receiver.Receive()); if (data == null) continue; EventHubMessageReceived(this, new EventHubMessageReceivedEventArgs(data)); } }

  18.      

  19.        

  20.   

  21. 1. 2. 3.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend