Skip to content

Coap Secure - IsConnected #7741

Closed Answered by franz-diia
franz-diia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I found the problem by myself :)

My aSockAddr which is used in otCoapSecureConnect was a local variable on stack!
Making it global fixed the problem!

NOTE: I copied the code from the OT CLI code!

otSockAddr sockaddr;

Looks like it's working in CLI context! Maybe my program has a different dynamic run-time behavior which makes the problem more visible!

Cheers,
Fränz

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jwhui
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant