Mosquitto 홈페이지 접속 (최신버젼 설치)
Eclipse Mosquitto
Version 2.0 has been released! The full details are available on the blog post. Eclipse Mosquitto is an open source (EPL/EDL licensed) message broker that implements the MQTT protocol ve
mosquitto.org
상단 네비게이션에
다운로드 이다...
스크롤을 내리다보면
접속해서 순번대로 설치해준다
분명 검색하고 찾아보는 초심자 일텐데
그럼 이제 MQTT 브로커를 작동시켜 테스트를 할 것이다.
DIY메카솔루션 오픈랩 에서
https://blog.naver.com/roboholic84/221232207387
ESP8266과 MQTT 통신 사용해보기
안녕하세요 메카솔루션입니다. 오늘은 저번에 포스트했던 MQTT를 사용해서 센서 값을 받아오는 예제를 ...
blog.naver.com
ESP8266은 스킵하고 안드로이드 MQTT Client 어플을 이용해 MQTT를 테스트 해보자
만약) 아이피와 포트정보를 똑바로 입력했음에도 불구하고 안된다면 (토픽이 확인까지..)
sudo cd .
sudo nano /etc/mosquitto/mosquitto.conf
mosquitto.conf
# Place your local configuration in /etc/mosquitto/conf.d/
#
# A full description of the configuration file is at
# /usr/share/doc/mosquitto/examples/mosquitto.conf.example
pid_file /run/mosquitto/mosquitto.pid
persistence true
persistence_location /var/lib/mosquitto/
log_dest file /var/log/mosquitto/mosquitto.log
include_dir /etc/mosquitto/conf.d
//추가
bind_address 0.0.0.0 #허락하는 아이피
allow_anonymous true # 권한부여
그리고 저장후
mosquitto를 재실행 시켜보자
sudo systemctl restart mosquitto