mirror of https://github.com/arendst/Tasmota.git
Updated AWS IoT (markdown)
parent
b4fd2db8d3
commit
12fa0b30de
10
AWS-IoT.md
10
AWS-IoT.md
|
@ -69,11 +69,17 @@ Click on "**Services**" and select "**IoT Core**".
|
|||
|
||||
Select the AWS Region where you want to locate your data, for ex: "**(EU) Frankfurt**".
|
||||
|
||||
<img width="1267" alt="AWS_IoT" src="https://user-images.githubusercontent.com/49731213/62428724-f2a28480-b704-11e9-83e1-7503050e90b8.png">
|
||||
|
||||
Now we need to create a security policy to allow your Tasmota devices to connect to AWS IoT, publish and subscribe to topics.
|
||||
|
||||
On the left panel, click on "**Secure**" > "**Policies**". Click on the "**Create**" button in the upper right corner.
|
||||
|
||||
Enter in the "**Name**" field, enter the name of your policy, for ex: "**TasmotaMqttPolicy**". Then click on "**Advanced mode**" Cut and paste the policy below. Click on "**Create**" in the lower right corner.
|
||||
Enter in the "**Name**" field, enter the name of your policy, for ex: "**TasmotaMqttPolicy**".
|
||||
|
||||
<img width="994" alt="Create_policy" src="https://user-images.githubusercontent.com/49731213/62428733-267daa00-b705-11e9-85ca-54609eb408ae.png">
|
||||
|
||||
Then click on "**Advanced mode**" Cut and paste the policy below. Click on "**Create**" in the lower right corner.
|
||||
|
||||
```
|
||||
{
|
||||
|
@ -155,6 +161,8 @@ Now we need to associate the certificate created earlier to your device. In the
|
|||
|
||||
Your setup is done in AWS IoT. Let's proceed to the custom firmware.
|
||||
|
||||
<img width="863" alt="Tasmota-01" src="https://user-images.githubusercontent.com/49731213/62428753-6c3a7280-b705-11e9-816e-77ead8e53053.png">
|
||||
|
||||
### Step 6. Enable AWS IoT in Tasmota
|
||||
|
||||
Using your favorite IDE, create `sonoff/user_config_override.h`, and add `#define USE_MQTT_AWS_IOT`. It is highly suggested to also add `#define USE_MQTT_TLS_CA_CERT`. You will need to #undef `#define USE_DISCOVERY` because mDNS will add too much code size.
|
||||
|
|
Loading…
Reference in New Issue