node-spc-mqtt.js Connection Error

Publish status and events in MQTT message broker
Post Reply
mhoeftx
Posts: 1
Joined: Tue 17 Feb 2015, 21:59

node-spc-mqtt.js Connection Error

Post by mhoeftx » Sun 11 Jun 2017, 22:06

Hi,

maybe someone can help me with my problem getting node-spc-mqtt.js running.
The broker (mosquitto) is running on the same pi as the SPC Web Gateway.
I am using the following config.json

Code: Select all

{
   "spc_gw_host":"192.168.1.123",
   "spc_gw_port":"8080",
   "spc_ws_user":"ws_user",
   "spc_ws_password":"ws_pwd",
   "spc_get_user":"get_user",
   "spc_get_password":"get_pwd",
   "mqtt_host":"192.168.1.123",
   "mqtt_port":"1883",
   "mqtt_main_topic":"/SPC/"
}
and when i start it with ./node-spc-mqtt.js, i get the following error:

Code: Select all

pi@SPC-Web-Gateway:/opt/node-spc-mqtt $ ./node-spc-mqtt.js
Connect Error: Error: write EPROTO 3069228096:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: write EPROTO 3069228096:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:../deps/openssl/openssl/ssl/s23_clnt.c:794:

    at exports._errnoException (util.js:907:11)
    at WriteWrap.afterWrite (net.js:790:14)

Is there any idea what problem that is?

node is v4.8.3
npm is 2.15.11

Thank you very much,

Best regards, Mark

Post Reply