I am working with Quectel’s MC60 interfaced with ARM micro-controller (uC), trying to upload CAN data to a MQTT broker coming continuously from another uC. I am using “” AT+QMTPUB=0,0,0,1,“Topic”, “” command to send data. As the size mentioned the command should accept the incoming CAN data till it matches the mentioned size and then upload that data automatically. But only first element of the CAN data set is uploaded and not the whole.
Flow of data:
uC --CAN–> uC (main) <–UART–> MC60
What is the best practice in a case as explained above in terms of programming in C or the GSM-MQTT AT command formats? What AT commands can I use to keep Publishing data continuously?