LPC54018,running both https get and mqtt client in the same device

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPC54018,running both https get and mqtt client in the same device

928 次查看
nick_ng
Contributor I

Hi,

I am running out of idea how to make my https get connection works while my mqtt client has already connected to a broker and running.

Are there any hints/tips on running https connection,i.e. getting a file over https while keeping a mqtt client connecting to another broker ?

For example, do I need to disconnect the mqtt connection during the procedure of connecting the https server?

Thanks

标签 (1)
标记 (1)
0 项奖励
回复
4 回复数

797 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nick,

I have asked AE team, I will give you a reply after I get feedback.

BR

XiangJun Rong

0 项奖励
回复

797 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nick,

This is AE reply:

"You can use different sockets to connect mqtt server and https server that means you can keep mqtt connection while connecting https server.

"

BR

Xiangjun Rong

0 项奖励
回复

797 次查看
nick_ng
Contributor I

Hi Xiangjun,

Thank you for your reply.

I did the same thing.. but I got two issues..

1. When I was trying to run ONLY the httpS to get a file, I always not able to get the last embedtls buffer size packet e.g the last 4096 bytes of that file

2. When I was trying use both the mqtt and https all together in the awsfreertos i.e. mqtt connected and subscribed to some topics and then triggered a download action (HTTPS get), during the phase of hand shaking, it jumps to hardfault.

Any ideas?

Thanks in advance,

Nick

0 项奖励
回复

797 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Nick,

You have to get the line which leads to hardware fault error although it is difficult.

BR

XiangJun Rong

0 项奖励
回复