coisme / mbed-to-aws-iot Goto Github PK
View Code? Open in Web Editor NEWMbed example program connecting to AWS IoT with MQTT over TLS
Mbed example program connecting to AWS IoT with MQTT over TLS
Connection closes right after connected to AWS IoT Core.
Mbed OS version 5.14.2
Opening network interface...
Connecting to network
Network interface opened successfully.
Time is now Mon Apr 13 04:37:59 2020
Connecting to host XXXXX.iot.ap-northeast-1.amazonaws.com:8883 ...
[DBG ][TLSW]: mbedtls_ssl_conf_ca_chain()
[INFO][TLSW]: Starting TLS handshake with XXXXX.iot.ap-northeast-1.amazonaws.com
[DBG ][TLSW]: mbedtls_ssl_setup()
[INFO][TLSW]: TLS connection to XXXXX.iot.ap-northeast-1.amazonaws.com established
[DBG ][TLSW]: Server certificate:
cert. version : 3
serial number : 08:DE:EA:88:21:54:C8:39:FA:3E:A7:22:3E:B3:57:B4
issuer name : C=US, O=Amazon, OU=Server CA 1B, CN=Amazon
subject name : CN=*.iot.ap-northeast-1.amazonaws.com
issued on : 2020-03-02 00:00:00
expires on : 2021-02-08 12:00:00
signed using : RSA with SHA-256
RSA key size : 2048 bits
basic constraints : CA=false
subject alt name :
dNSName : iot.ap-northeast-1.amazonaws.com
dNSName : *.iot.ap-northeast-1.amazonaws.com
key usage : Digital Signature, Key Encipherment
ext key usage : TLS Web Server Authentication, TLS Web Client Authentication
certificate policies : ???, ???
[INFO][TLSW]: Certificate verification passed
Connection established.
MQTT client is trying to connect the server ...
[DBG ][TLSW]: send 45
Client connected.
Client is trying to subscribe a topic "mbed_test".
[DBG ][TLSW]: send 16
Client has subscribed a topic "mbed_test".
To send a packet, push the button 1 on your board.
The client has disconnected.
It seems isConnected()
doesn't return true
even if it is connected. If L196 is commented out, everything works fine.
Lines 194 to 197 in 1416a2e
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.