How to run the demo in linux
step1
make sure your develop environment.
cmake
and version greater than 3.8.2gcc
gdb
make
is installed
step2
generate mqtt_config.h
file to replace ./inc/mqtt_config.h
cd tiny/tools/
directory, run python script
python3 mqtt_config_gen.py
then input your server configuration, generate mqtt_config.h
file
copy to ./inc/
replace old file
step3
make build
directory and compile in build
mkdir build && cd build
cmake ..
make
step4
run program !!
# in build directory
./mqtt_demo
other
you can copy this demo to other path, but if you want do it,
you need modify CMakeLists.txt
. find line
set(TINY_ROOT ../../../)
and modify path-to-tinyos
set(TINY_ROOT path-to-tinyos)