1/多topic 订阅
mosquitto -t “iot/test1” -t “iot/test2” -t “aot/test1” -t “aot/test2”
2/编译本地运行程序
生成 目标文件
gcc -c sub.c
gcc -c pub.c
gcc -c cli_share.c
链接程序
gcc sub.o pub.o cli_share.o -o mysub -lmosquttio
3/交叉编译链接
cross-gcc
1/多topic 订阅
mosquitto -t “iot/test1” -t “iot/test2” -t “aot/test1” -t “aot/test2”
2/编译本地运行程序
生成 目标文件
gcc -c sub.c
gcc -c pub.c
gcc -c cli_share.c
链接程序
gcc sub.o pub.o cli_share.o -o mysub -lmosquttio
3/交叉编译链接
cross-gcc