From e3afca6985b121766d407f9b5ab42297e41079a9 Mon Sep 17 00:00:00 2001 From: hani_bad7 Date: Mon, 10 Mar 2025 15:01:37 +0100 Subject: [PATCH] Added callback method prototype and parameter descriptions --- docs/API_reference/en/cloudlib/aws.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/API_reference/en/cloudlib/aws.md b/docs/API_reference/en/cloudlib/aws.md index 0749608d..d1bae403 100644 --- a/docs/API_reference/en/cloudlib/aws.md +++ b/docs/API_reference/en/cloudlib/aws.md @@ -161,7 +161,12 @@ set_callback(topic_name, callback) **Parameters:** - `topic_name` (str) - The MQTT topic for which the callback is set. -- `callback` (function) - The function to be executed when a message is received. +- `callback` (function) - The function to be executed when a message is received. Prototype: + + callback_function(msg) + - Callback function parameter: + + - `msg`: dictionary type message. Already converted from JSON string to dictionary format. **Return Value:** -- Gitee