Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need MQTT +TLS DEMO #216

Open
staunchheart opened this issue Dec 11, 2024 · 7 comments
Open

Need MQTT +TLS DEMO #216

staunchheart opened this issue Dec 11, 2024 · 7 comments

Comments

@staunchheart
Copy link

need MQTT +mbedtls demo
components/net/lib/mqtt/MQTT-C/examples/mbedtls_publisher.c
can not work.

@gamelaster
Copy link
Contributor

what do you mean with "can not work" ?

@staunchheart
Copy link
Author

what do you mean with "can not work" ?

1、mbedtls_net_connect-> getaddrinfo( host, port, &hints, &addr_list ) return MBEDTLS_ERR_NET_UNKNOWN_HOST
2、change to netconn_gethostbyname(host, &addr);
build ok,
mbedtls_ssl_handshake no error
mqtt_init no error
mqtt_connect no error
but server not real connected;
mqtt_sync/mqtt_publish/mqtt_sync return MQTT_ERROR_UNKNOWN

@gamelaster
Copy link
Contributor

Which chip do you use? BL616?

@staunchheart
Copy link
Author

Which chip do you use? BL616?
yes BL616

@staunchheart
Copy link
Author

Which chip do you use? BL616?

can add a examples to /wifi/sta/xxxx ?

@gamelaster
Copy link
Contributor

sorry, I do not have the example.

@staunchheart
Copy link
Author

sorry, I do not have the example.

1、mbedtls_net_connect-> getaddrinfo( host, port, &hints, &addr_list ) return MBEDTLS_ERR_NET_UNKNOWN_HOST
2、change to netconn_gethostbyname(host, &addr);
build ok,
mbedtls_ssl_handshake no error
mqtt_init no error
mqtt_connect no error
but server not real connected;
mqtt_sync/mqtt_publish/mqtt_sync return MQTT_ERROR_UNKNOWN

Can you help me solve this problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants