Mosquitto 홈페이지 접속 (최신버젼 설치)
상단 네비게이션에
다운로드 이다...
스크롤을 내리다보면
접속해서 순번대로 설치해준다
분명 검색하고 찾아보는 초심자 일텐데
그럼 이제 MQTT 브로커를 작동시켜 테스트를 할 것이다.
DIY메카솔루션 오픈랩 에서
https://blog.naver.com/roboholic84/221232207387
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