...
Go to the Messages page on the console and then choose the History Storage tab:
Note to ClearBlade IoTCore users: there will be an existing item in History Storage for topic /devices/+/state. DO NOT EDIT OR DELETE THAT ITEM.
Click Add Topic and configure the History Storage item:
Enter the topic for which message history should be stored. Use wildcards + and # as appropriate for MQTT topics. e.g. /devices/+/commands/#
Check the Platform (i.e. cloud) and/or Edge checkboxes as appropriate. It does not hurt to have both checked if only one is used. For most customers Messages only need to be stored on the Platform.
Set a value for Max Rows. We highly recommend to NOT set this to Infinite! Set this to a maximum number of messages to store beyond the benefit of storing messages is diminished.
Set a value for Max Time. We highly recommended to NOT set this to Forever. Set this to a maximum time beyond which a reconnecting device SHOULD be treated as a newly connecting device.ing
NOTE: Messages contain binary payloads will be Hex-encoded when saved to Message History.