Giter VIP home page Giter VIP logo

awsiot's Introduction

awsiot

ESP8266 / ESP32 examples with Amazon IoT

awsiot's People

Contributors

antelder avatar bighoneypot avatar torntrousers avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

awsiot's Issues

Cannot connect

Hi! I used your ESP8266 example code but unable to connect. I never get past the "PubSubClient connecting to a1dxdgsyyuvt28-ats.iot.us-east-1.amazonaws.com...." No errors. It just keeps printing the dots but never connects.
Arduino 1.8.9, ESP8266 board 3.0.2, PubSubClient (Nick O'Leary's) version 2.6.0.

Any suggestions on how to go about debugging this? When I diff my code with yours, the only difference is the ssid, password and the certificates.

Reduce binary certificate & key buffer sizes

Hello,

it seems there is a waste on the following instructions.

uint8_t binaryCert[certificatePemCrt.length()];

uint8_t binaryPrivate[privatePemKey.length()];

The raw data is not the same size of the Base64 encoded data. It is actually about 75% of its size.

uint8_t binaryCert[certificatePemCrt.length() * 3 / 4];
uint8_t binaryPrivate[privatePemKey.length() * 3 / 4]; 

C macros from other projects.

https://www.ffmpeg.org/doxygen/3.2/group__lavu__base64.html
https://api-docs.iotivity.org/latest-c/base64_8h.html#a7d5a3b6936df0cd2df64ed83bcb303df

BTW, thanks for this great example.

WifiClientSecure blocking ESP8266

I am connecting ESP8266 to AWS IoT Core using this code and it works well and is sending messages.
But I am facing a problem with WifiClientSecure. When it is trying to connect to AWS my code is blocked for like 6 seconds or more depending on the response. But I have some critical proccess happening and my code never can be blocked.

What could I do to make the process asynchronous?

Thanks.

Missing Function declaration in ESP32 version

I think this declaration is missing:
void pubSubCheckConnect();

The Arduino IDE gives me an error like:
"pubSubCheckConnect not declared inthis scope"
when I compile. If I add the declaration at the top with the others, clean compiles just fine.

Unable to Connect

Hi, I have followed the instructions and entered the certificate.pem and private.pem and I have formatted as instructed. I am unable to connect. Just wondering do I need to enter the rootCert anywhere or should I be able to connect without it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.