服务器mosquitto 及 websocket 已经安装好了,
配置:config.mk WITH_WEBSOCKETS:=yes
配置:mosquitto.conf
35 pid_file /var/run/mosquitto.pid
43 user root
136 port 1883
144 max_connections -1
277 listener 36036
297 protocol websockets
513 allow_anonymous true
启动:mosquitto -c /etc/mosquitto/mosquitto.conf
1513821115: mosquitto version 1.4.11 (build date 2017-12-19 14:12:55+0800) starting
1513821115: Config loaded from /etc/mosquitto/mosquitto.conf.
1513821115: Opening websockets listen socket on port 36036.
1513821115: Opening ipv4 listen socket on port 1883.
1513821115: Error: Address already in use
mosquitto_sub mosquitto_pub 正常订阅和发布;
用下面HTML客户端测试:
http://blog.csdn.net/qq_28877125/article/details/78350479
http://blog.csdn.net/a358763471/article/details/44200401
http://blog.csdn.net/M348915654/article/details/53616837
都没有连上服务器;
帮我找找问题在哪