Function match_topic

Source
pub fn match_topic(topic: &str) -> Result<(), Error>
Expand description

Check if the given topic is one of the Device Defender topics.

ยงExample

use aws_iot_device_sdk_embedded::{tunneling};

let tunnels = tunneling::match_topic("$aws/things/chloe/tunnels/notify");
assert_eq!(tunnels, Ok(()));