You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'feature/improve_config_and_docs_and_loop_message' into 'master'
feat: improve config and docs and loop message
See merge request esp-components/esp-azure!3
I have tested this change in such and such a way and it works as expected.
Copy file name to clipboardExpand all lines: README.md
+34-10
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,15 @@
1
1
# A MQTT Demo that Connects ESP device to Azure Cloud
2
2
3
3
# Table of Contents
4
+
4
5
-[Introduction](#introduction)
5
6
-[Preparation](#preparation)
6
7
-[Configuring and Building](#configuring-and-building)
7
8
-[Checking Result](#checking-result)
8
9
-[Troubleshooting](#troubleshooting)
9
10
10
11
## Introduction
12
+
11
13
<aname="Introduction"></a>
12
14
13
15
Espressif offers a wide range of fully-certified Wi-Fi & BT modules powered by our own advanced SoCs. For more details, see [Espressif Modules](https://www.espressif.com/en/products/hardware/modules).
@@ -23,11 +25,14 @@ Main workflow:
23
25
## Preparation
24
26
25
27
<aname="preparation"></a>
28
+
26
29
### 1. Hardware
30
+
27
31
- An **ubuntu environment** should be set up to build your demo;
28
32
- Any **[ESP device](https://www.espressif.com/en/products/hardware/modules)** can be used to run your demo.
29
33
30
34
### 2. Azure IoT Hub
35
+
31
36
-[Get iothub connection string (primary key)](https://www.azure.cn/en-us/pricing/1rmb-trial-full/?form-type=identityauth) from the Azure IoT Hub, which will be used later. An example can be seen below:
- For step-by-step instructions, please click [here](doc/IoT_Suite.md).
37
42
38
43
### 3. iothub-explorer
44
+
39
45
- Install [Node.js](https://nodejs.org/en/);
40
46
- Install [iothub-explorer](https://www.npmjs.com/package/iothub-explorer) with command line `npm install -g iothub-explorer`.
41
47
- If failed, please check [here](http://thinglabs.io/workshop/esp8266/setup-azure-iot-hub/) for more information.
@@ -50,6 +56,7 @@ $ iothub-explorer -V
50
56
After that, you should be able to use iothub-explorer to manage your iot-device.
51
57
52
58
### 4. Device Connection String
59
+
53
60
- login with the **iothub connection string (primary key)** you got earlier with command lines;
54
61
- create your device, and get a **device connection string**. An example can be seen:
55
62
@@ -60,41 +67,58 @@ After that, you should be able to use iothub-explorer to manage your iot-device.
60
67
For detailed instruction, please click [Here](doc/iothub_explorer.md).
61
68
62
69
### 5. SDK
70
+
63
71
-[AZURE-SDK](https://github.com/espressif/esp-azure) can be implemented to connect your ESP devices to Azure, using MQTT protocol.
64
72
- Espressif SDK
65
73
- For ESP32 platform: [ESP-IDF](https://github.com/espressif/esp-idf)
66
74
- For ESP8266 platform: [ESP8266_RTOS_SDK](https://github.com/espressif/ESP8266_RTOS_SDK)
67
75
68
76
### 6. Compiler
77
+
69
78
- For ESP32 platform: [Here](https://github.com/espressif/esp-idf/blob/master/README.md)
70
79
- For ESP8266 platform: [Here](https://github.com/espressif/ESP8266_RTOS_SDK/blob/master/README.md)
71
80
72
81
## Configuring and Building
73
82
74
83
<aname="Configuring_and_Building"></a>
75
84
76
-
### 1. Updating variables
77
-
- Replace the `connectionString` variable with your device connection string in [esp-azure/main/iothub_client_sample_mqtt.c](https://github.com/espressif/esp-azure/blob/master/main/iothub_client_sample_mqtt.c).
- The azure connection string contains Hostname, DeviceId, and SharedAccessKey in the format:
87
+
This repo uses [Git Submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules) for its dependancies. To successfully clone these other repositories, after cloning this repo, use the following command in the root:
0 commit comments