coisme / hello-tlssocket Goto Github PK
View Code? Open in Web Editor NEWA simple HTTPS example program for TLSSocket.
A simple HTTPS example program for TLSSocket.
Hello,
Thanks for this sample code. I tried compiling and running it on my STM32 target and out of the box, I get a Mutex Lock Failed assertion. When I increased the "events.shared-stacksize" to 8192, the program seems to hang on "Starting TLS handshake with os.mbed.com".
I then set "tls-socket.debug-level" to 2 so that we get more information in the trace logs. That log file is attached. Any idea what could be going on? Let me know if you need further info.
Compiler : GCC_ARM version 7.3.1
Target : NUCLEO_F767ZI
Out-of-the-Box Log 1 :
_"HelloTSLSocket, HTTPS example of TLSSocket
Connecting to network
Synchronizing time
Time set.
[INFO][TLSW]: mbedtls_ssl_config_defaults()
[INFO][TLSW]: mbedtls_ssl_conf_ca_chain()
[INFO][TLSW]: mbedtls_ssl_conf_rng()
[INFO][TLSW]: mbedtls_ssl_conf_authmode()
[INFO][TLSW]: mbedtls_ssl_setup()
[INFO][TLSW]: Starting TLS handshak
++ MbedOS Error Info ++
Error Status: 0x80020115 Code: 277 Module: 2
Error Message: Mutex lock failed
Location: 0x802AE0B
Error Value: 0xFFFFFFFC
Current Thread: Id: 0x2000F014 Entry: 0x802B23B StackSize: 0x1000 StackMem: 0x2000F058 SP: 0x2000FEB0
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x80020115
-- MbedOS Error Info --"_
Increased Stack Size Log 2 :
HelloTSLSocket, HTTPS example of TLSSocket
Connecting to network
Synchronizing time
Time set.
[INFO][TLSW]: mbedtls_ssl_config_defaults()
[INFO][TLSW]: mbedtls_ssl_conf_ca_chain()
[INFO][TLSW]: mbedtls_ssl_conf_rng()
[INFO][TLSW]: mbedtls_ssl_conf_authmode()
[INFO][TLSW]: mbedtls_ssl_setup()
[INFO][TLSW]: Starting TLS handshake with os.mbed.com
https://github.com/nuertey/RandomArtifacts/blob/master/TLSSocket_Log3.txt
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.