I would like to send data from a mobile phone to AWS IoT Core and from there to TimeStream but I must know that the data is 100% there, even in the case of Internet disconnections.
As a precaution, I thought of maintaining a local database on the mobile and seeking a mechanism where, upon successful receipt of an MQTT message by AWS TimeStream, an acknowledgment (ACK) will be provided. This would enable me to locally mark the specific data as "SENT."
As an alternative approach, if a message fails to be received, I want to receive an error notification. This would enable us to detect unsent messages and arrange for their transmission at a later time.
One option is to assign a unique ID to each MQTT message and periodically synchronize with the cloud. However, I'm interested in a more intuitive solution.
Unfortunately, I did not find any Ack or Expection messages when sending data to TimeStream