Create a Function
Set the Environment Variable
Environment variables allow defining dynamic values that are external to the code but are accessible to the function during runtime. These variables are set outside the function code and can be modified without changing the code itself, providing flexibility and security. They are commonly used to store configuration settings, sensitive data or credentials, or any other information that the function may need to operate.
Add an Event Trigger
Wildcards can be used for subscribing to multiple MQTT topics simultaneously. There are two types of wildcards:
- single-level: Represented by a symbol (+). By subscribing to a topic with a single-level wildcard, the client receives all messages from any topic that contains an arbitrary string in place of the wildcard.
- multi-level: Represented by a hash symbol (#) and must be placed as the last character in the topic, preceded by a forward slash. By subscribing to a topic with a multi-level wildcard the client receives all messages of any topic that begins with the pattern before the #.