2018-12-09, 12:04 PM
(This post was last modified: 2018-12-09, 02:05 PM by cepicscepics.)
tanks a lot for reply!!!
- wich computer? rpi or my osx laptop?
- how can I use mosquitto_sub?
if, on OP terminal, I run:
this is my openplotter's mqtt's tab
the message changed:
rc=-2
[size=undefined] - the network connection failed[/size]
this is an extract of my syslog:
sorry I'm an old newbi....
tnks
Quote:First I would try to make sure you can connect to the broker from your computer with for example mosquitto_sub.
- wich computer? rpi or my osx laptop?
- how can I use mosquitto_sub?
if, on OP terminal, I run:
Code:
pi@openplotter:~ $ mosquitto_sub -h localhost -p 1884 -t 'vessels/self.environment.depth.belowTransducer'
bash: mosquitto_sub: command not found
Quote:I suspect you have OpenPlotter's own Mqtt server configured with a username/password and your client is trying to connect to that.
this is my openplotter's mqtt's tab
Quote:Try changing the SK mqtt gateway's port something else, like 11883 and adjust your esp code accordingly. There should be also error messages in your RPi's syslog complaining about the gateway's mqtt broker (Mosca) not starting, if there is already the OpenPlotter-managed mqtt broker occupying the port 1883.
Code:
Connecting to MyHomeWiFi
.......
WiFi connected
IP address:
xxx.xxx.x.xx
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...Client ID: WIFI-Display-0029DCD7
failed, rc=-2 try again in 5 seconds
the message changed:
rc=-2
Code:
MQTT_CONNECT_FAILED
this is an extract of my syslog:
Code:
Dec 9 10:31:52 openplotter kernel: [43833.516098] w1_master_driver w1_bus_master1: Family 0 for 00.52c000000000.d3 is not registered.
Dec 9 10:32:24 openplotter signalk-server[5862]: #033[0mPUT /restart #033[32m200 #033[0m4.755 ms - 13#033[0m
Dec 9 10:32:26 openplotter systemd[1]: signalk.service: Service hold-off time over, scheduling restart.
Dec 9 10:32:26 openplotter systemd[1]: Stopped signalk.service.
Dec 9 10:32:26 openplotter systemd[1]: Started signalk.service.
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 9 10:32:33 openplotter signalk-server[5889]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** Please fix your application to use the native API of Avahi!
Dec 9 10:32:33 openplotter node[5890]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
Dec 9 10:32:34 openplotter signalk-server[5889]: signalk-server running at 0.0.0.0:[object Object]
Dec 9 10:32:56 openplotter kernel: [43897.042771] w1_master_driver w1_bus_master1: Attaching one wire slave 00.d2c000000000 crc 5f
Dec 9 10:32:56 openplotter kernel: [43897.045603] w1_master_driver w1_bus_master1: Family 0 for 00.d2c000000000.5f is not registered.
sorry I'm an old newbi....
tnks