Code Monkey home page Code Monkey logo

Comments (4)

tongjiang avatar tongjiang commented on May 30, 2024

Do u have ported the ssl /tcp HAL API on your platform?
The iotkit uses mbedtls only as an example for tls/dtls in linux x86 platform, you should use your ssl lib or porting the mbedtls and realize the HAL API.

from iotkit-embedded.

edwardyangx avatar edwardyangx commented on May 30, 2024

src/import/linux/include/mbedtls/ssl.h
#define MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY -0x7880

I saw code = -30848 which means -0x7880, so looks to me in this case SSL connection was closed and SDK you ported had to disconnect MQTT session

from iotkit-embedded.

WeldonWangwang avatar WeldonWangwang commented on May 30, 2024

@tongjiang @edwardyangx , thanks,

I added a small delay after mbedtls_ssl_readutils in the _network_ssl_read, and it works good, so I guess it start return without get the packages.

from iotkit-embedded.

edwardyangx avatar edwardyangx commented on May 30, 2024

@WeldonWangwang That's a valuable feedback, which proved again HAL_TLS_mbed.c on different platforms all need corresponding adjustment or even re-implentation.

Well done. I will close this issue then.

from iotkit-embedded.

Related Issues (20)

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.