Closed una801 closed 2 years ago
Hello @una801, what version of the repository you are using?
Sorry for the late reply. The confirmation was delayed because it was the weekend. I don't know how to check the repository version....
In my opinion, there is no problem with receiving CAN Data, but I thought it was a problem with the codeword because I saw only RS232 Data as having a problem, but is it a problem with the version apart from that code?
please help me..
Hi @una801 ,
Sorry about the delayed response. From the logs it looks like your project is based on the MQTT mutual auth demo. I notice a difference between your code and the original demo. In the publishToTopic
function in the original demo, there is a line that gets the next publishing index. It looks like this line is missing from your code. Can you try adding this line back? Please let us know if this works.
It was a very simple question. As you answered, I rewritten the public Toxic part while looking at the demo, and it was solved. While testing and modifying the code, I made these simple mistakes and got in trouble. Thanks for your help
Thanks
Hello I succeeded in a project to send CAN Data to the server using AWS IoT Embedded C SDK.
This time, the following error occurs during the test to send the received data to the server after writing RS232 data of the battery pack.
[INFO] [DEMO] [mqtt_demo_mutual_auth.c:989] Subscribing to the MQTT topic PESS/IoT/Battery. [ERROR] [Transport_OpenSSL_Sockets] [openssl_posix.c:814] Failed to send data over network: SSL_write of OpenSSL failed: ErrorStatus=(null). [ERROR] [MQTT] [core_mqtt.c:605] Transport send failed. Error code=-1. [ERROR] [Transport_OpenSSL_Sockets] [openssl_posix.c:761] Failed to receive data over network: SSL_read failed: ErrorStatus=(null). [ERROR] [MQTT] [core_mqtt_serializer.c:2396] A single byte was not read from the transport: transportStatus=-1. [ERROR] [MQTT] [core_mqtt.c:1300] Receiving incoming packet length failed. Status=MQTTRecvFailed [ERROR] [MQTT] [core_mqtt.c:2172] Exiting process loop due to failure: ErrorStatus=MQTTRecvFailed [ERROR] [DEMO] [mqtt_demo_mutual_auth.c:1032] MQTT_ProcessLoop returned with status = MQTTRecvFailed. [INFO] [MQTT] [core_mqtt.c:2129] Disconnected from the broker.
Since the previous CAN Data transmission was successful, it seems that there was an abnormality while changing the part that publicizes RS232 Data, but I don't know what the problem is. (There is no modification except for the Public part.)
The following is the Public Code that I modified.
Before sending it to the server, I used a simple printf to confirm that the data was read and then applied the code inside the Public function.
Can I know what the problem is? Please help me.