别着急,坐和放宽
dofc-mqtt is the name of a containers instance. Use docker logs -f --tail=100 dofc-mqtt to view its logs. Use docker exec -it dofc-mqtt mosquitto_sub -h 127.0.0.1 -p 1883 -t "dofc/device/dofc-motor-3C0F02C9B78C/config/state" -v to view messages for the specified topic.dofc-mqtt是我开的一个containers的名称
docker logs -f --tail=100 dofc-mqtt这条命令可以查看日志
docker exec -it dofc-mqtt mosquitto_sub -h 127.0.0.1 -p 1883 -t "dofc/device/dofc-motor-3C0F02C9B78C/config/state" -v 可以查看对应topic的报文