-
카테고리
-
세부 분야
임베디드 · IoT
-
해결 여부
미해결
아두이노에서 MQTT서버 접속이 안됩니다.
23.04.14 23:19 작성 23.04.14 23:25 수정 조회수 402
0
위 상태의 환경인데요, 아두이노에서 wifi 접속까지는 되지만 192.168.0.2의 브로커에 접속하려하면
Attempting MQTT connection... failed, rc=2 try again in 5 seconds
의 메세지가 계속 뜨며 접속이 안됩니다. 구글에 찾아보니 client null이 아니라 다른 문자열이 나오는 것 같은데, 이를 어찌해야 좋을까요? 진도를 못 나가고 있습니다...
방화벽도 해제하였고,
# listener port-number [ip address/host name/unix socket path]
#listener
listener 1883
# Defaults to false, unless there are no listeners defined in the configuration
# file, in which case it is set to true, but connections are only allowed from
# the local machine.
allow_anonymous true
위 내용도 콘피그에 넣어봤습니다. 당연히 토픽 명은 아두이노 코드와 같게 outTopic으로 하였습니다.
답변을 작성해보세요.
답변 1