You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -156,7 +156,7 @@ class Attribute_Request_Callback : public Callback<void, JsonObjectConst const &
156
156
}
157
157
158
158
/// @brief Stops the internal timeout timer, is called as soon as an answer is received from the cloud.
159
-
/// If this method is not called in time the initally subscribed callback will be used to inform the user of the timeout instead.
159
+
/// If this method is not called in time the initally subscribed callback will be used to inform the user of the timeout instead
160
160
/// @note Is not mean to be called explicitly by the user, because it is instead called when necessary by internal methods that handle the class instance
/// @param username Non owning pointer to the basic MQTT credentials username.
121
+
/// Additionally it has to be kept alive by the user until the @ref Provision_Request method has been called with this instance as the argument, because that method copies the data into the outgoing MQTT buffer to create the provision request
/// @param password Non owning pointer to the basic MQTT credentials password.
131
+
/// Additionally it has to be kept alive by the user until the @ref Provision_Request method has been called with this instance as the argument, because that method copies the data into the outgoing MQTT buffer to create the provision request
/// @brief Sets the basic MQTT credentials client ID, that will be used by the provisioned device
140
+
/// @param client_id Non owning pointer to the basic MQTT credentials client ID.
141
+
/// Additionally it has to be kept alive by the user until the @ref Provision_Request method has been called with this instance as the argument, because that method copies the data into the outgoing MQTT buffer to create the provision request
/// @brief Gets the public X.509 certificate hash, that will be used by the provisioned device
139
-
/// @return Public X.509 certificate hash
145
+
/// @return Non owning pointer to the public X.509 certificate hash.
146
+
/// Owned by the user that passed it originally in the constructor or with the @ref Set_Certificate_Hash method
140
147
charconst * Get_Certificate_Hash() const;
141
148
142
149
/// @brief Sets the public X.509 certificate hash, that will be used by the provisioned device
143
-
/// @param hash Public X.509 certificate hash
150
+
/// @param hash Non owning pointer to the public X.509 certificate hash.
151
+
/// Additionally it has to be kept alive by the user until the @ref Provision_Request method has been called with this instance as the argument, because that method copies the data into the outgoing MQTT buffer to create the provision request
144
152
voidSet_Certificate_Hash(charconst * hash);
145
153
146
154
/// @brief Gets the string containing the used credentials type that decides which provisioning method is actually used,
147
-
/// by the Provision_Callback and therefore decides what response we will receive from the server
148
-
/// @return String containing the used credentials type
155
+
/// by the @ref Provision_Callback and therefore decides what response we will receive from the server
156
+
/// @return Owning pointer to th string containing the used credentials type.
157
+
/// Simply points to a compile time string constant saved into static memory
149
158
charconst * Get_Credentials_Type() const;
150
159
151
160
/// @brief Gets the amount of microseconds until we expect to have received a response
152
161
/// @return Timeout time until timeout callback is called
153
162
uint64_tconst & Get_Timeout() const;
154
163
155
164
/// @brief Sets the amount of microseconds until we expect to have received a response
165
+
/// @note The value of 0, means the timeout timer is never started and therefore the timeout callback never called
156
166
/// @param timeout_microseconds Timeout time until timeout callback is called
@@ -162,14 +172,16 @@ class Provision_Callback : public Callback<void, JsonDocument const &> {
162
172
#endif// !THINGSBOARD_USE_ESP_TIMER
163
173
164
174
/// @brief Starts the internal timeout timer if we actually received a configured valid timeout time and a valid callback.
165
-
/// Is called as soon as the request is actually sent
175
+
/// @note The timeout time is valid if it is not 0 and the callback is valid if it is not a nullptr.
176
+
/// Is not mean to be called explicitly by the user, because it is instead called when necessary by internal methods that handle the class instance
166
177
voidStart_Timeout_Timer();
167
178
168
-
/// @brief Stops the internal timeout timer, is called as soon as an answer is received from the cloud
169
-
/// if it isn't we call the previously subscribed callback instead
179
+
/// @brief Stops the internal timeout timer, is called as soon as an answer is received from the cloud.
180
+
/// If this method is not called in time the initally subscribed callback will be used to inform the user of the timeout instead
181
+
/// @note Is not mean to be called explicitly by the user, because it is instead called when necessary by internal methods that handle the class instance
170
182
voidStop_Timeout_Timer();
171
183
172
-
/// @brief Sets the callback method that will be called upon request timeout (did not receive a response in the given timeout time)
184
+
/// @brief Sets the callback method that will be called upon request timeout (did not receive a response from the cloud in the given timeout time)
173
185
/// @param timeout_callback Callback function that will be called
0 commit comments