1#ifndef Timeoutable_Request_h
2#define Timeoutable_Request_h
29 void Set_Timeout(uint64_t
const & timeout_microseconds);
31#if !THINGSBOARD_USE_ESP_TIMER
51 uint64_t m_timeout_microseconds = {};
Wrapper class which allows to start a timer and if it is not stopped in the given time then the inter...
Definition: Callback_Watchdog.h:31
std::function< void(argument_types... arguments)> function
Callback signature.
Definition: Callback.h:34
General purpose request callback that can timeout if the response to the request is not received in t...
Definition: Timeoutable_Request.h:10
void Set_Timeout_Callback(Callback_Watchdog::function timeout_callback)
Sets the callback method that will be called upon request timeout (did not receive a response from th...
Definition: Timeoutable_Request.cpp:36
uint64_t const & Get_Timeout() const
Gets the amount of microseconds until we expect to have received a response.
Definition: Timeoutable_Request.cpp:11
void Update_Timeout_Timer()
Updates the internal timeout timer.
Definition: Timeoutable_Request.cpp:20
void Set_Timeout(uint64_t const &timeout_microseconds)
Sets the amount of microseconds until we expect to have received a response.
Definition: Timeoutable_Request.cpp:15
void Start_Timeout_Timer()
Starts the internal timeout timer if we actually received a configured valid timeout time and a valid...
Definition: Timeoutable_Request.cpp:25
void Stop_Timeout_Timer()
Stops the internal timeout timer, is called as soon as an answer is received from the cloud....
Definition: Timeoutable_Request.cpp:32