Created
June 6, 2019 05:40
-
-
Save alexanderturner/1f35dd4a8c62a290993a423c5a216bc6 to your computer and use it in GitHub Desktop.
freertosiossetuplog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/aws/amazon-freertos.git | |
cd amazon-freertos/tools/aws_config_quick_start/ | |
vi configure.json | |
{ | |
"afr_source_dir":"../..", | |
"thing_name":"github_test", | |
"wifi_ssid":"myssid", | |
"wifi_password":"password", | |
"wifi_security":"eWiFiSecurityWPA2" | |
} | |
python SetupAWS.py setup | |
aws iot describe-thing --thing-name github_test | |
{ | |
"version": 1, | |
"thingName": "github_test", | |
"defaultClientId": "github_test", | |
"attributes": {}, | |
"thingArn": "arn:aws:iot:ap-southeast-2:222105418958:thing/github_test", | |
"thingId": "124db0c2-66b3-4a28-a937-51f165e62598" | |
} | |
aws iot describe-certificate --certificate-id 3282f3b18f5b289bca254c66182329ae69e439d8af519d88b7b0fed945d25cb1 | |
{ | |
"certificateDescription": { | |
"certificateArn": "arn:aws:iot:ap-southeast-2:222105418958:cert/3282f3b18f5b289bca254c66182329ae69e439d8af519d88b7b0fed945d25cb1", | |
"status": "ACTIVE", | |
"customerVersion": 1, | |
"certificateId": "3282f3b18f5b289bca254c66182329ae69e439d8af519d88b7b0fed945d25cb1", | |
"generationId": "a53e1c1f-61d5-4b20-85bc-3ffc63f83166", | |
"lastModifiedDate": 1559798451.985, | |
"validity": { | |
"notAfter": 2524607999.0, | |
"notBefore": 1559798331.0 | |
}, | |
"transferData": {}, | |
"ownedBy": "222105418958", | |
"creationDate": 1559798451.985 | |
} | |
} | |
echo $IDF_PATH | |
[nil] | |
cd ../../demos/espressif/esp32_devkitc_esp_wrover_kit/make/ | |
make menuconfig (serial port config) | |
make flash monitor | |
0 6 [main] WiFi module initialized. Connecting to AP myssid... | |
I (249) phy: phy_version: 4008, c9ae59f, Jan 25 2019, 16:54:06, 0, 0 | |
I (249) wifi: mode : sta (30:ae:a4:fe:52:d4) | |
I (259) WIFI: SYSTEM_EVENT_STA_START | |
I (379) wifi: n:1 1, o:1 0, ap:255 255, sta:1 1, prof:1 | |
I (1359) wifi: state: init -> auth (b0) | |
I (1369) wifi: state: auth -> assoc (0) | |
I (1379) wifi: state: assoc -> run (10) | |
I (1389) wifi: connected with myssid, channel 1 | |
I (1389) wifi: pm start, type: 1 | |
I (1389) WIFI: SYSTEM_EVENT_STA_CONNECTED | |
1 305 [IP-task] vDHCPProcess: offer a00015fip | |
I (3179) event: sta ip: 10.0.1.95, mask: 255.255.255.0, gw: 10.0.1.1 | |
I (3179) WIFI: SYSTEM_EVENT_STA_GOT_IP | |
2 306 [IP-task] vDHCPProcess: offer a00015fip | |
3 306 [main] WiFi Connected to AP. Creating tasks which use network... | |
4 307 [main] Write certificate... | |
I (3199) PKCS11: Initializing NVS partition: "storage" | |
5 312 [main] Write device private key... | |
6 323 [main] Creating MQTT Echo Task... | |
7 323 [MQTTEcho] MQTT echo attempting to connect to a2vir6x2xbxfvq-ats.iot.ap-southeast-2.amazonaws.com. | |
8 1824 [MQTTEcho] ERROR: MQTT echo failed to connect with error 1. | |
9 1824 [MQTTEcho] MQTT echo test could not connect to broker. | |
10 1824 [MQTTEcho] MQTT echo demo finished. | |
11 1824 [MQTTEcho] ----Demo finished---- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment