Skip to content
Commit bde041af authored by Ahmed Ismail's avatar Ahmed Ismail Committed by Devaraj Ranganna
Browse files

mqtt-tests: Refactor mqtt keep alive patch



This patch is modified so it can be pushed upstream
The idea is to check if the `MQTT_KEEP_ALIVE_INTERVAL_SECONDS`
macro is defined by the user. Where if it is not defined,
a default value (5) would be used, this way the user can choose
the default value or different one that is to be provided using
CMake or command line. In our case, target_compile_definitions()
CMake function is used to overwrite the value of the macro for
mqtt integration tests.

This is done to avoid maintaining a patch which is project specific.

Signed-off-by: default avatarAhmed Ismail <Ahmed.Ismail@arm.com>
parent 5b8fe4a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment