From 09a1a2b6d1a2ae1444273a78a4bcb74545912747 Mon Sep 17 00:00:00 2001 From: mikee47 Date: Sat, 14 Sep 2019 22:53:11 +0100 Subject: [PATCH] Add Basic_AWS sample --- samples/Basic_AWS/.cproject | 153 ++++++++++++++++++ samples/Basic_AWS/.project | 29 ++++ samples/Basic_AWS/Makefile | 9 ++ samples/Basic_AWS/README.rst | 8 + samples/Basic_AWS/app/MqttMessage.h | 38 +++++ samples/Basic_AWS/app/application.cpp | 101 ++++++++++++ samples/Basic_AWS/component.mk | 4 + .../files/3051d5b002-certificate.pem.crt.txt | 20 +++ .../files/3051d5b002-private.pem.key | 27 ++++ .../Basic_AWS/files/3051d5b002-public.pem.key | 9 ++ samples/Basic_AWS/files/AmazonRootCA1.pem | 20 +++ samples/Basic_AWS/files/AmazonRootCA1.pem.der | Bin 0 -> 837 bytes .../Basic_AWS/files/certificate.pem.crt.der | Bin 0 -> 862 bytes samples/Basic_AWS/files/endpoint.txt | 1 + samples/Basic_AWS/files/private.pem.key.der | Bin 0 -> 1192 bytes samples/Basic_AWS/include/ssl/cert.h | 27 ++++ samples/Basic_AWS/include/ssl/private_key.h | 34 ++++ 17 files changed, 480 insertions(+) create mode 100644 samples/Basic_AWS/.cproject create mode 100644 samples/Basic_AWS/.project create mode 100644 samples/Basic_AWS/Makefile create mode 100644 samples/Basic_AWS/README.rst create mode 100644 samples/Basic_AWS/app/MqttMessage.h create mode 100644 samples/Basic_AWS/app/application.cpp create mode 100644 samples/Basic_AWS/component.mk create mode 100644 samples/Basic_AWS/files/3051d5b002-certificate.pem.crt.txt create mode 100644 samples/Basic_AWS/files/3051d5b002-private.pem.key create mode 100644 samples/Basic_AWS/files/3051d5b002-public.pem.key create mode 100644 samples/Basic_AWS/files/AmazonRootCA1.pem create mode 100644 samples/Basic_AWS/files/AmazonRootCA1.pem.der create mode 100644 samples/Basic_AWS/files/certificate.pem.crt.der create mode 100644 samples/Basic_AWS/files/endpoint.txt create mode 100644 samples/Basic_AWS/files/private.pem.key.der create mode 100644 samples/Basic_AWS/include/ssl/cert.h create mode 100644 samples/Basic_AWS/include/ssl/private_key.h diff --git a/samples/Basic_AWS/.cproject b/samples/Basic_AWS/.cproject new file mode 100644 index 0000000000..ed83788380 --- /dev/null +++ b/samples/Basic_AWS/.cproject @@ -0,0 +1,153 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + make + -f ${ProjDirPath}/Makefile + all + true + true + true + + + make + -f ${ProjDirPath}/Makefile + clean + true + true + true + + + make + -f ${ProjDirPath}/Makefile + flash + true + true + true + + + make + -f ${ProjDirPath}/Makefile + flashonefile + true + true + true + + + make + -f ${ProjDirPath}/Makefile + flashinit + true + true + true + + + make + -f ${ProjDirPath}/Makefile + flashboot + true + true + true + + + make + -f ${ProjDirPath}/Makefile + rebuild + true + true + true + + + + + + + + + + + + + + + + + + + + diff --git a/samples/Basic_AWS/.project b/samples/Basic_AWS/.project new file mode 100644 index 0000000000..685876e484 --- /dev/null +++ b/samples/Basic_AWS/.project @@ -0,0 +1,29 @@ + + + Basic_AWS + + + SmingFramework + Sming + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/samples/Basic_AWS/Makefile b/samples/Basic_AWS/Makefile new file mode 100644 index 0000000000..ff51b6c3a7 --- /dev/null +++ b/samples/Basic_AWS/Makefile @@ -0,0 +1,9 @@ +##################################################################### +#### Please don't change this file. Use component.mk instead #### +##################################################################### + +ifndef SMING_HOME +$(error SMING_HOME is not set: please configure it as an environment variable) +endif + +include $(SMING_HOME)/project.mk diff --git a/samples/Basic_AWS/README.rst b/samples/Basic_AWS/README.rst new file mode 100644 index 0000000000..42fbf3c6a7 --- /dev/null +++ b/samples/Basic_AWS/README.rst @@ -0,0 +1,8 @@ +Basic AWS +========= + +How to set up Amazon Web Services to use as an IOT gateway. + + +openssl rsa -in APP.private.key -out APP.private.key.der -outform DER +openssl x509 -in APP.cert.pem -out APP.cert.der -outform DER diff --git a/samples/Basic_AWS/app/MqttMessage.h b/samples/Basic_AWS/app/MqttMessage.h new file mode 100644 index 0000000000..370836105a --- /dev/null +++ b/samples/Basic_AWS/app/MqttMessage.h @@ -0,0 +1,38 @@ +/**** + * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development. + * Created 2015 by Skurydin Alexey + * http://github.com/SmingHub/Sming + * All files of the Sming Core are provided under the LGPL v3 license. + * + * MqttMessage.h - C++ utilities to simplify handling MQTT messages and buffers + * + ****/ + +#pragma once + +#include +#include + +/** + * @brief Helper class to simplify printing and parsing message buffers + */ +class MqttBuffer : public Printable +{ +public: + MqttBuffer(const mqtt_buffer_t& buf) : buf(buf) + { + } + + operator String() const + { + return String(reinterpret_cast(buf.data), buf.length); + } + + size_t printTo(Print& p) const override + { + return p.write(buf.data, buf.length); + } + +private: + const mqtt_buffer_t& buf; +}; diff --git a/samples/Basic_AWS/app/application.cpp b/samples/Basic_AWS/app/application.cpp new file mode 100644 index 0000000000..eb6ad38688 --- /dev/null +++ b/samples/Basic_AWS/app/application.cpp @@ -0,0 +1,101 @@ +#include +#include "MqttMessage.h" + +// If you want, you can define WiFi settings globally in Eclipse Environment Variables +#ifndef WIFI_SSID +#define WIFI_SSID "PleaseEnterSSID" // Put you SSID and Password here +#define WIFI_PWD "PleaseEnterPass" +#endif + +namespace +{ +MqttClient mqtt; + +IMPORT_FSTR(privateKeyData, PROJECT_DIR "/files/private.pem.key.der"); +IMPORT_FSTR(certificateData, PROJECT_DIR "/files/certificate.pem.crt.der"); +IMPORT_FSTR(awsEndpoint, PROJECT_DIR "/files/endpoint.txt"); + +// Run MQTT client +void startMqttClient() +{ + mqtt.setSslInitHandler([](Ssl::Session& session) { + session.options.verifyLater = true; + session.keyCert.assign(privateKeyData, certificateData); + }); + + Url url; + url.Scheme = URI_SCHEME_MQTT_SECURE; + url.Host = awsEndpoint; + mqtt.connect(url, "Basic_AWS"); + + // Assign a disconnect callback function + // mqtt.setCompleteDelegate(checkMQTTDisconnect); + mqtt.subscribe("thing/fish/test"); +} + +// Publish our message +void publishMessage() +{ + // Auto reconnect + if(mqtt.getConnectionState() != eTCS_Connected) { + startMqttClient(); + } + + Serial.println("publish message"); + mqtt.publish("version", "ver.1.2"); +} + +// Callback for messages, arrived from MQTT server +int onMessagePublish(MqttClient& client, mqtt_message_t* message) +{ + Serial.print("Publish: "); + Serial.print(MqttBuffer(message->publish.topic_name)); + Serial.print(":\r\n\t"); // Pretify alignment for printing + Serial.println(MqttBuffer(message->publish.content)); + return 0; +} + +int onMessageConnect(MqttClient& client, mqtt_message_t* message) +{ + Serial.print("Connect: "); + Serial.print(MqttBuffer(message->connect.protocol_name)); + Serial.print(", client: "); + Serial.println(MqttBuffer(message->connect.client_id)); + return 0; +} + +int onMessageDisconnect(MqttClient& client, mqtt_message_t* message) +{ + Serial.println("Disconnect"); + return 0; +} + +void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway) +{ + Serial.print("Connected: "); + Serial.println(ip); + startMqttClient(); + publishMessage(); // run once publishMessage + + mqtt.subscribe("$aws/things/Basic_AWS/shadow/get"); +} + +} // namespace + +void init() +{ + Serial.begin(SERIAL_BAUD_RATE); // 115200 by default + Serial.systemDebugOutput(true); + + Serial.println("Hello"); + + // initialization config + mqtt.setEventHandler(MQTT_TYPE_PUBLISH, onMessagePublish); + mqtt.setEventHandler(MQTT_TYPE_CONNECT, onMessageConnect); + mqtt.setEventHandler(MQTT_TYPE_DISCONNECT, onMessageDisconnect); + + WifiStation.config(WIFI_SSID, WIFI_PWD); + WifiStation.enable(true); + WifiEvents.onStationGotIP(gotIP); + WifiAccessPoint.enable(false); +} diff --git a/samples/Basic_AWS/component.mk b/samples/Basic_AWS/component.mk new file mode 100644 index 0000000000..bcb042181f --- /dev/null +++ b/samples/Basic_AWS/component.mk @@ -0,0 +1,4 @@ +DISABLE_SPIFFS := 1 +ENABLE_SSL := 1 +MQTT_NO_COMPAT := 1 +ENABLE_CUSTOM_HEAP := 1 diff --git a/samples/Basic_AWS/files/3051d5b002-certificate.pem.crt.txt b/samples/Basic_AWS/files/3051d5b002-certificate.pem.crt.txt new file mode 100644 index 0000000000..cc3928d8b7 --- /dev/null +++ b/samples/Basic_AWS/files/3051d5b002-certificate.pem.crt.txt @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDWjCCAkKgAwIBAgIVAOxaW1RB41mdhMvpNLw9Bo85VGkRMA0GCSqGSIb3DQEB +CwUAME0xSzBJBgNVBAsMQkFtYXpvbiBXZWIgU2VydmljZXMgTz1BbWF6b24uY29t +IEluYy4gTD1TZWF0dGxlIFNUPVdhc2hpbmd0b24gQz1VUzAeFw0xOTA5MTUxNDI3 +MjVaFw00OTEyMzEyMzU5NTlaMB4xHDAaBgNVBAMME0FXUyBJb1QgQ2VydGlmaWNh +dGUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQClilQHo7KeM6hv61Zi +Up2274y5/fOzoYYznCr/+8fivmtAh6BBekiFY5FYPOr1Gb6hIQs0TQvmOeYWDD4n +dy2qHhSnhWVyw/OzCr9QngBVjNQ7PVDd+Ij708E3UEuZp9/ORiGfSPQ/LrYFw6bB +zlPgRiN7H6hNOrmG1+lsZCwH/zFkGaOMZp22pUTUmNX//Fg9mni0OT4iBngD/lVO ++TIBz96Nj0kQepr5Pci4nwuAwrxf+sBy8s8aA6JxJrB1zlUMT0rc7K4AxjJCVi9q +am/Fd7Lyh+4JD0ndPVsIIpUKD7JDSCmicOA0q3VB1p4SuDGrsgvvqQXrfncSnBTw +tEnnAgMBAAGjYDBeMB8GA1UdIwQYMBaAFI08RqEu1VXBTz7eQypWXKpuZV6OMB0G +A1UdDgQWBBQ9AwSFdv0tkOROoUjIPOX66boY9zAMBgNVHRMBAf8EAjAAMA4GA1Ud +DwEB/wQEAwIHgDANBgkqhkiG9w0BAQsFAAOCAQEAfeoF/tH7cI6cw9psDGi3LEyQ +YRuut9f6psjY4j++DrWGpsqvLlghvgeighvbSf0J6CTHVlrUXpQEOgRk3HzcMjwW +7EczkT6FsJghqjGgye3wKtAsqoide8uvC1mJ7Ev02LfdEZDge55+930ozBzXnjH2 +R1s0pRokzh8pHy2Ug/Y/29dRBPK9smCtOFUAeQpJ6Z93u720bOUOqHo+KBfZjTEC +5eyxp2NiuzYP8bCOEyJIcDXXk5xVy6WZMJ73Xj/2z5M39YIr+QXvITDx4zfTK8Ue +3h9I7CULHEA2cjKmdlDiNGTu2fKChrqgUy0owzQSPxf1G9gV95yESLEceIpKjg== +-----END CERTIFICATE----- diff --git a/samples/Basic_AWS/files/3051d5b002-private.pem.key b/samples/Basic_AWS/files/3051d5b002-private.pem.key new file mode 100644 index 0000000000..e265bf1f02 --- /dev/null +++ b/samples/Basic_AWS/files/3051d5b002-private.pem.key @@ -0,0 +1,27 @@ +-----BEGIN RSA PRIVATE KEY----- +MIIEpAIBAAKCAQEApYpUB6OynjOob+tWYlKdtu+Muf3zs6GGM5wq//vH4r5rQIeg +QXpIhWORWDzq9Rm+oSELNE0L5jnmFgw+J3ctqh4Up4VlcsPzswq/UJ4AVYzUOz1Q +3fiI+9PBN1BLmaffzkYhn0j0Py62BcOmwc5T4EYjex+oTTq5htfpbGQsB/8xZBmj +jGadtqVE1JjV//xYPZp4tDk+IgZ4A/5VTvkyAc/ejY9JEHqa+T3IuJ8LgMK8X/rA +cvLPGgOicSawdc5VDE9K3OyuAMYyQlYvampvxXey8ofuCQ9J3T1bCCKVCg+yQ0gp +onDgNKt1QdaeErgxq7IL76kF6353EpwU8LRJ5wIDAQABAoIBABp78Aes2+XNk/Qb +7Z0bZJog5x3WkEe73tGg+YwsxwTyvAv95tiy7KlSja1VSa3e6Y2z0KwUa4Pw3WvH +l6YOviKKX3mRsPJUgUeyv3rxXFJTjpzPqYFpwtivPylPUlkJ75d7xuNJ87GsEnkH +nUVCck7eSczn+rAoZgg5wOGTgSviGSq2evmGoTOX0u2IEbJGZhS+Ge5jjYITuquG +vd2AwydUtS62aftyUH0RedsR/E8AJHm4PQE/W/gOu0h06g4NkgoUzuHiaYpZTUV1 +1YJ0cJuPm2cB6bZAHXMtwhNQ+P4u93NKpHB2BNL0zuFZ0jjieMdE9BR/IkNDXWeD +dRL4anECgYEA040zgtpWeZrfjtjQ7HDTJMhxZbQAgpwkjV/hQB/DwAhLRl1f98bM +5e6NQZUkTBiyeDjALAC8kA1Tzbwemm1wnAvDAujhzZf6vi/hnN21YZ0vyzit+O6O +K3GOJni6YVx5A0eW8whedbgT1JuLI3cCEXi2MeV46R5hj4HxMRdaWE8CgYEAyFJO +H1P/nkFlf/FOfKG9M3qHCMh37FbaD5Nzs1gdSCwo5odC9I9UZUpRbhlZzS1n282n +dPAXTl9dvI4oIa4JY1wirvigHsXx6ujlpJX8ixfYAiEAJpDmpa1bn6ut7QoNZvl+ +F9Xa6WzaYmjldKIwaJLxzutrNGbR1YAXsnIC9ukCgYEA0NmJjRl4Xb1kD2ZFe+c2 +zA2Gxd0a09bKzzdk7SVu31pQ1jrAz6DYD/eeRKy0lNuc9csxDT/86En//hBGNjbt +AWErOOgoZAwyYyhqF69ZrfC8imh+eE8q1ADbUWfGuO/OGErI303X02fTTAXzKyQG +SrFdTY05/QsdTcv/DXP8oUkCgYA14148sz4KdpE1b9arVF8vYAC/bh5Ep8CVfBcd +4dBOwAJosW5jl8MeVHW/ZnZv6Y0M5i/sF0JNxP3UYXGOTeEcp4Z1B1Ebtig0B17v +faGoUUu8luARf91sKEyDkY2CPLgKQYeYJeFz9eJxosJHM/JNz2nZPh9iw14jTwgQ +6va9MQKBgQCyOAzarD9sf5rFWox4zMIxVF+xrY0Szc30iIfPnb5gA/zUrDSVf05V +Ql1SV7pZzIC/KsK+RYssjMcWXTO+JRjhjSecW0M2FCZBUX7hHCTCYPiQ/3oLSuwb +Bl5TKKAw3w9xAbW3wI9O2MnLsdQltcmAPez+rTM2+/NZ+xjxA2LQOQ== +-----END RSA PRIVATE KEY----- diff --git a/samples/Basic_AWS/files/3051d5b002-public.pem.key b/samples/Basic_AWS/files/3051d5b002-public.pem.key new file mode 100644 index 0000000000..b44d32683f --- /dev/null +++ b/samples/Basic_AWS/files/3051d5b002-public.pem.key @@ -0,0 +1,9 @@ +-----BEGIN PUBLIC KEY----- +MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApYpUB6OynjOob+tWYlKd +tu+Muf3zs6GGM5wq//vH4r5rQIegQXpIhWORWDzq9Rm+oSELNE0L5jnmFgw+J3ct +qh4Up4VlcsPzswq/UJ4AVYzUOz1Q3fiI+9PBN1BLmaffzkYhn0j0Py62BcOmwc5T +4EYjex+oTTq5htfpbGQsB/8xZBmjjGadtqVE1JjV//xYPZp4tDk+IgZ4A/5VTvky +Ac/ejY9JEHqa+T3IuJ8LgMK8X/rAcvLPGgOicSawdc5VDE9K3OyuAMYyQlYvampv +xXey8ofuCQ9J3T1bCCKVCg+yQ0gponDgNKt1QdaeErgxq7IL76kF6353EpwU8LRJ +5wIDAQAB +-----END PUBLIC KEY----- diff --git a/samples/Basic_AWS/files/AmazonRootCA1.pem b/samples/Basic_AWS/files/AmazonRootCA1.pem new file mode 100644 index 0000000000..a6f3e92af5 --- /dev/null +++ b/samples/Basic_AWS/files/AmazonRootCA1.pem @@ -0,0 +1,20 @@ +-----BEGIN CERTIFICATE----- +MIIDQTCCAimgAwIBAgITBmyfz5m/jAo54vB4ikPmljZbyjANBgkqhkiG9w0BAQsF +ADA5MQswCQYDVQQGEwJVUzEPMA0GA1UEChMGQW1hem9uMRkwFwYDVQQDExBBbWF6 +b24gUm9vdCBDQSAxMB4XDTE1MDUyNjAwMDAwMFoXDTM4MDExNzAwMDAwMFowOTEL +MAkGA1UEBhMCVVMxDzANBgNVBAoTBkFtYXpvbjEZMBcGA1UEAxMQQW1hem9uIFJv +b3QgQ0EgMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALJ4gHHKeNXj +ca9HgFB0fW7Y14h29Jlo91ghYPl0hAEvrAIthtOgQ3pOsqTQNroBvo3bSMgHFzZM +9O6II8c+6zf1tRn4SWiw3te5djgdYZ6k/oI2peVKVuRF4fn9tBb6dNqcmzU5L/qw +IFAGbHrQgLKm+a/sRxmPUDgH3KKHOVj4utWp+UhnMJbulHheb4mjUcAwhmahRWa6 +VOujw5H5SNz/0egwLX0tdHA114gk957EWW67c4cX8jJGKLhD+rcdqsq08p8kDi1L +93FcXmn/6pUCyziKrlA4b9v7LWIbxcceVOF34GfID5yHI9Y/QCB/IIDEgEw+OyQm +jgSubJrIqg0CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC +AYYwHQYDVR0OBBYEFIQYzIU07LwMlJQuCFmcx7IQTgoIMA0GCSqGSIb3DQEBCwUA +A4IBAQCY8jdaQZChGsV2USggNiMOruYou6r4lK5IpDB/G/wkjUu0yKGX9rbxenDI +U5PMCCjjmCXPI6T53iHTfIUJrU6adTrCC2qJeHZERxhlbI1Bjjt/msv0tadQ1wUs +N+gDS63pYaACbvXy8MWy7Vu33PqUXHeeE6V/Uq2V8viTO96LXFvKWlJbYK8U90vv +o/ufQJVtMVT8QtPHRh8jrdkPSHCa2XV4cdFyQzR1bldZwgJcJmApzyMZFo6IQ6XU +5MsI+yMRQ+hDKXJioaldXgjUkK642M4UwtBV8ob2xJNDd2ZhwLnoQdeXeGADbkpy +rqXRfboQnoZsG4q5WTP468SQvvG5 +-----END CERTIFICATE----- diff --git a/samples/Basic_AWS/files/AmazonRootCA1.pem.der b/samples/Basic_AWS/files/AmazonRootCA1.pem.der new file mode 100644 index 0000000000000000000000000000000000000000..86b7dcd0b416fcbfd1636f5c019403ede4ddb413 GIT binary patch literal 837 zcmXqLVs@5qwPB{BO^B} zgMpDG!O>~FbfMn1Qdeu^Gg(*9Tf}> z*0AF)}i2s%R)Y zRdMxk;d=LmfRft08`nF^zRb+{9-)}ca~YmCeB;(ugPrbQ?IZmt`C3y-6Hm@&Zwbc1Q{rc}h`cPmw8PecTBE+ObT9 literal 0 HcmV?d00001 diff --git a/samples/Basic_AWS/files/certificate.pem.crt.der b/samples/Basic_AWS/files/certificate.pem.crt.der new file mode 100644 index 0000000000000000000000000000000000000000..172a81abf7730ba52a4b22c2ba38e9834d4cee84 GIT binary patch literal 862 zcmXqLVvaIsVscu*%*4pVB+Bq6DmujRapc^V(=Sc-*s}FohGYsF@Un4gwRyCC=VfH% zW@Rw&HS{*{WMd9x;pTC2%uTGy&r=9bO;QL>Eh@`QPAyjOw}pu6CFkcVc;+SRDfrk1 zrzVz^BUv@hGCeSu?@M{DxL2%A@5 zCHE~<UtqkzCx9Hh0@nmn$=_{{ItU zJF8-grJWL61@pg9zn?~o=kN9QdkR#|`e}P&$9(RFLwn+X9Vq&AUW$29q1uMhbD=!` zUU%NCV>o8y6sDh*m4CE+)2H@#ocx}5ZKFAqrgHIba`w<%RPexLb*baEc|to3S8w8e zzmoNJUAfR4kq=uupEEHtGB7SqFo-jd2Zo}oGK++PSc6EfjoU)KtDy(|?d~~ig~hDO zOO5L@kOe8=V-aH!v1MjyE&HoG;fdcuj}taef4$r#@!fz2BrVLy_@9NzfWd$d#N!9? zSeTjE8<67wm`Z?gz{pVhiuK>c-vxbh4&Tb*$=I&rGa*rW-S+FhmYulq$bKK+*0yD* z*6T$m?qgrnBz@cSFXs!D<6%)(;-;`zv83FoxnpD__Qu_KqFw8T8H%e67o2?iLFj zJ-u|M!MyKr_TSD=HvihB{gd^*qQS?<=9jgP%H5Oqc%#ZK<6u@~w5%-Pkx9zCo1dE6 db}b0j)i`V-WH0_z`iAKDIV~O=Wh%P7`T(hXSiArL literal 0 HcmV?d00001 diff --git a/samples/Basic_AWS/files/endpoint.txt b/samples/Basic_AWS/files/endpoint.txt new file mode 100644 index 0000000000..d12d36a653 --- /dev/null +++ b/samples/Basic_AWS/files/endpoint.txt @@ -0,0 +1 @@ +a2e224ln0t7m96-ats.iot.eu-west-1.amazonaws.com \ No newline at end of file diff --git a/samples/Basic_AWS/files/private.pem.key.der b/samples/Basic_AWS/files/private.pem.key.der new file mode 100644 index 0000000000000000000000000000000000000000..fb614a79b388e82931d3dc3b9e62e58c37c4642b GIT binary patch literal 1192 zcmV;Z1Xueof&`=j0RRGm0RaG|ic|-qvYs=jZ|hcKQk}N%jJf^uv!RAFoGSnO$Kt+g zK!>0~dPs$1kyt$H^%=gQAqzB33+6fI77RWocP*+O6sLt{a>Mhp3cpaE09B0CJ3Ua{ z_=x+{!8cG#nWx{*Mj@X_^gk}P1;eJn&QstHFWErE3W}UXB zMAVqo|NK}zns~H1J|YHq1O8P``7!~|-i?n*5PF*VJ;=D93xLABU;4mu^3NIrqH!j$ zbR6uuemV~v6nx~qo0-GIXJAN(3KY)a;%SOmO+|Ipf^=}3kDF%!>9#-}b1lLXQ272X_j5|5aCQXJ^v>Z~ z(m3LH$3*lLe~Pa0$Z=(~0D_z(jbGtF zAH%>1OGaH^_r}cS?u|i}Bup5xcsRf;0KAY5Q_Z{{nr(2L3&R5F;mw!&zAxdN-L+wz zFUvTs`0kD?agHWOeZSgeU9mHdkr*a9H{CXnW(ty`a~t?dd8X8C>>)!ON7 z+G1$sbfPe5lJU;#Ycyuj)qoeWasu}00)c@5(AkNN8F*d2WDjOVd*?RH4Ti7D zuUW0|yozXkcuy+S0NYV##<=g!7)r?BP1ne`HE-6dR9`P(0KaY?M5n-&d>0+z&`!VtXt8c%m%|=Zb-!kIZ|RK; z<}d6QLQTZ|)M0UsP2n7;hII!~8@4Dk2VU=ep{P+yyq4e*f8A^-OoNe)f;_kiL5G+n z;dAxkaiYRUGxAN(Y1uv>V#8h|PY4j|_PsFzfq?+BI1JjXKWu-R#afJb%)&8LU$L!? z63xx@h=e@<0GT~b%NS