-
Notifications
You must be signed in to change notification settings - Fork 236
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
MQTT_SSL and AWS Broker (Problem) #323
Comments
Hi! I checked again it and I found that the problem was the "MQTT_Publish" and "MQTT_Subscribe". You should review the parameters for your application according to the MQTT documentation. MQTT_Publish
MQTT_Subscribe
I confirm that everything works perfectly. |
Hello, Thanks. |
Hi, |
I have it running now, by making these changes: delete: |
1. SDK version(SDK 版本)
{
SDK 2.112
GPRS_C_SDK_V2112.7z
I have successfully compiled some demos: gpio, network, network_2
}
2. In what kind of operation problems appear, and how to reproduce the problem ?(什么样的操作步骤问题会出现,是否是稳定复现,如何复现问题?)
{
OS: Windows 10
Demo problem: mqtt_ssl
Broker: AWS
The example of the version does not run the network, so I updated only the demo to last commit 586b7c7, and the network apparently works because in the traces appears "network activate success...".
Then, when run the MQTT connection in the traces appears:
start mqtt test
MQTT connection status: 0
MQTT succeed connect to broker
MQTT OnMqttConnection() end
MQTT connected; now subscribe topic:app
MQTT connection status:256
connect to broker fail, error code: 256
MQTT OnMqttConnection() end
MQTT not connected to broker! can not publish
I suspected the connection with the broker. However, I checked the conexion with MQTT.fx V1.7.1 and there I completed the requested information (BrokerAddress, Broker Port, Client ID, SSL/TLS: CA File, Client Certificate File, Client Key File, Client Key Pasword, Protocol: TLSv1.2, PEM Formatted: True, QoS:0, Retain: false). The connection there was successful.
This is the information that I complete in the demo code:
Does anyone know the correct connection for a broker like AWS?
Thanks so much for any help!
}
The text was updated successfully, but these errors were encountered: