is it possible to set retain flag to true on "Republish to AWS IoT topic" iot core rule

0

Hi,

is it possible to set retain flag to true on "Republish to AWS IoT topic" iot core rule?

Kimi
質問済み 6ヶ月前161ビュー
1回答
0

As per my knowledge, the AWS IoT Core rule action "Republish to an AWS IoT topic" in the IoT Core Rule Engine does not support setting the "retain" flag directly. The "retain" flag is used to indicate whether a message should be retained by the broker and sent to any new subscribers that match the topic.

The rule action "Republish to an AWS IoT topic" in AWS IoT Core allows you to republish the incoming message to a different topic, but it doesn't provide explicit options for configuring the "retain" flag.

If you require more granular control over the "retain" flag, you might need to use a different approach. One common method is to use a Lambda function as a rule action to perform custom processing and republish the message to the desired topic, setting the "retain" flag as needed.

AWS
回答済み 6ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ