ESP8266 / ESP32 examples with Amazon IoT
harringaymakerspace / awsiot Goto Github PK
View Code? Open in Web Editor NEWESP8266 / ESP32 examples with Amazon AWS IoT
ESP8266 / ESP32 examples with Amazon AWS IoT
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.
Hello,
it seems there is a waste on the following instructions.
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.
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.
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.