mosquitto 는 broker(서버 역할)
mosquitto-client는 client 역할을 하는 프로그램이다.
$ apt-cache search mosqui libmosquitto-dev - MQTT version 5.0/3.1.1/3.1 client library, development files libmosquitto1 - MQTT version 5.0/3.1.1/3.1 client library libmosquittopp-dev - MQTT version 3.1 client C++ library, development files libmosquittopp1 - MQTT version 5.0/3.1.1/3.1 client C++ library mosquitto - MQTT version 5.0/3.1.1/3.1 compatible message broker mosquitto-clients - Mosquitto command line MQTT clients mosquitto-dev - Development files for Mosquitto |
publish는 메시지를 송신하고, subscribe는 메시지를 수신한다.
$ mosquitto_pub -h [호스트] -t [토픽] -m [메시지] $ mosquitto_sub -h [호스트] -t [토픽] |
'이론 관련 > IoT' 카테고리의 다른 글
mosquitto - MQTT broker (0) | 2019.05.15 |
---|---|
OneM2M / mobius (0) | 2018.12.13 |
node-red (0) | 2018.12.13 |
WIPS 스터디 (0) | 2018.12.12 |
CoAP 관련 스터디 (0) | 2018.12.12 |