Presentation is loading. Please wait.

Presentation is loading. Please wait.

Azure 236504 – winter 2016/17 Boris van Sosin, Marina Minkin, Nitsan Pri Hadash, Ariel Yehezkeli SI CALOREM NON TOLERAS E CVLINA EXI.

Similar presentations


Presentation on theme: "Azure 236504 – winter 2016/17 Boris van Sosin, Marina Minkin, Nitsan Pri Hadash, Ariel Yehezkeli SI CALOREM NON TOLERAS E CVLINA EXI."— Presentation transcript:

1 Azure – winter 2016/17 Boris van Sosin, Marina Minkin, Nitsan Pri Hadash, Ariel Yehezkeli SI CALOREM NON TOLERAS E CVLINA EXI

2 We’re going to talk about:
Microsoft Azure Cloud Computing. WeMos.

3 Microsoft Azure Cloud Computing

4 What Is Cloud Computing?

5 Advantages of Cloud Computing
“Unlimited resources” Scale on demand #clients #services Out of the box infrastructure Redundant (geographical) Less deployment management

6 Azure Features Integrated into Visual Studio
Many services in one place App Service Has API for both tables and custom APIs General computing- because Arduino computational resources are limited Connects to both Windows Phone and WeMos/NodeMCU (and Arduino with Ethernet shield)

7 The Azure portal Azure control panel: https://portal.azure.com/
Each team was required to activate its Azure pass. You need Visual Studio 2015 or newer. You can get it from MSDNAA:

8

9 Mobile Service Software Stack
Client Cloud App Service Proxy Controller Controller JSON / XML JSON / XML HTTP HTTP

10 Table Controller Tutorial
mobile-windows-store-dotnet-get-started/

11

12

13

14

15

16

17

18

19

20 API Apps Tutorial apps-why-best-platform

21

22

23

24

25

26

27

28

29

30

31

32

33

34 1. Once you copied your code from the developer portal, you may experience an error with the HttpUtility. To handle it, you have to right click your project, then select ‘add’ and ’reference’, then choose System.Web and Save.

35 Publishing Don’t forget to publish your service!!!

36 Other Features File Storage Blob Storage

37 WeMos

38 Today we will focus on this case
System structure There are several ways to integrate WeMos into your project. Some of them are illustrated here Today we will focus on this case

39 Wemos Client with Client Server Example
Function Service HTTPClient

40 JSON JavaScript Object Notation A lightweight data-interchange format
App Service Ctrlr Proxy JSON / XML HTTP JavaScript Object Notation A lightweight data-interchange format “Self-describing“, easy to parse in code, human-readable {"employees":[     {"firstName":"John", "lastName":"Doe"},     {"firstName":"Anna", "lastName":"Smith"},     {"firstName":"Peter", "lastName":"Jones"} ]}

41 Creating Function App- Screenshots
Function Service Creating Function App- Screenshots 1 2 3

42 Addind ESP8266 To the Arduino IDE
HTTPClient Addind ESP8266 To the Arduino IDE Open the Preferences menu in the Arduino IDE Paste this URL:

43 Addind ESP8266 To the Arduino IDE
HTTPClient Addind ESP8266 To the Arduino IDE 1 2 3- reboot the machine

44 Running the Sample sketch
HTTPClient Running the Sample sketch In Tools -> Boards choose WeMos D1 R2 & mini File -> ESP8266HTTPClient -> BasicHttpClient Make sure to fix the AP details, and the server address (lines 34, 47 respectively)- don’t forget to replage https with https To send objects to the server, modifications to the http header are needed. After http.begin() add the following (copy-paste might ruin the apostrophes): http.addHeader("Content-Type", "application/json"); http.addHeader("x-functions-key", "JpnxoZ0brnhYD2MBvavafniqHAYB61uwZ45URiPLjNIjjunLrrPIWA=="); // the key here is the master key (marked in the screenshot) Replace http.GET() with http.POST({JSON*string*comes*here})


Download ppt "Azure 236504 – winter 2016/17 Boris van Sosin, Marina Minkin, Nitsan Pri Hadash, Ariel Yehezkeli SI CALOREM NON TOLERAS E CVLINA EXI."

Similar presentations


Ads by Google