Code Monkey home page Code Monkey logo

mbed-to-aws-iot's People

Contributors

michalpasztamobica avatar toyowata avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mbed-to-aws-iot's Issues

Connection closes right after connected

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.

Mbed-to-AWS-IoT/main.cpp

Lines 194 to 197 in 1416a2e

/* Check connection */
if(!mqttClient->isConnected()){
break;
}

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.