node-spc-mqtt.js Connection Error
Posted: 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
and when i start it with ./node-spc-mqtt.js, i get the following error:
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
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/"
}
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)
node is v4.8.3
npm is 2.15.11
Thank you very much,
Best regards, Mark