Code: Select all
git clone https://github.com/SUPLA/supla-core.git
Code: Select all
cd supla-core/supla-mqtt-client/Release
Code: Select all
git clone https://github.com/SUPLA/supla-core.git
Code: Select all
cd supla-core/supla-mqtt-client/Release
Code: Select all
git checkout -b mqtt-experimental remotes/origin/mqtt-experimental
Code: Select all
git clone https://github.com/SUPLA/supla-core.git
cd supla-core
git checkout -b mqtt-experimental remotes/origin/mqtt-experimental
cd supla-core/supla-mqtt-client/Release
Code: Select all
sudo make clean
sudo make all
Code: Select all
Building file: ../src/supla-client-lib/supla-socket.c
Invoking: Cross GCC Compiler
gcc -I/usr/src/openssl/include -O3 -Wall -fsigned-char -c -fmessage-length=0 -MMD -MP -MF"src/supla-client-lib/supla-socket.d" -MT"src/supla-client-lib/supla-socket.o" -o "src/supla-client-lib/supla-socket.o" "../src/supla-client-lib/supla-socket.c"
../src/supla-client-lib/supla-socket.c:42:25: fatal error: openssl/err.h: Nie ma takiego pliku ani katalogu
#include <openssl/err.h>
^
compilation terminated.
src/supla-client-lib/subdir.mk:54: polecenia dla obiektu 'src/supla-client-lib/supla-socket.o' nie powiodły się
make: *** [src/supla-client-lib/supla-socket.o] Błąd 1
Code: Select all
apt get-install libssl-dev
Code: Select all
apt get-install libssl-dev
Code: Select all
sudo apt-get install libssl-dev
Code: Select all
./supla-mqtt-client -config config-template.yaml
Code: Select all
pi@supla_server:~/supla-mqtt $ ./supla-mqtt-client -config config-template.yaml
INFO[1573295683.611198] initializing main loop
INFO[1573295683.612723] Client GUID: 1F22D271D0393DBA36FC2F355BF7CCEE
configuration file missing [parameter -config]
Code: Select all
./supla-mqtt-client -config config_template.yaml
Code: Select all
ERR[1573296228.337478] Protocol version error. Server doesn't support this client. S:1-9/C:11
INFO[1573296228.337978] Connecting...
mqtt client error MQTT_ERROR_SOCKET_ERROR
ERR[1573296228.373221] Protocol version error. Server doesn't support this client. S:1-9/C:11
INFO[1573296228.373789] Connecting...
ERR[1573296228.407751] Protocol version error. Server doesn't support this client. S:1-9/C:11
To nie będzie raczej to bo na wersji cloudowej (svr5.supla.org) też jest to samo.Beku wrote: Sat Nov 09, 2019 10:50 am Co do protokołu
Możesz spróbować zmienić linię 127 pliku supla-mqtt-client/src/supla-loop.cpp
scc.protocol_version = 10;
na coś mniejszego, np. scc.protocol_version = 9;
następnie ponowny build i próba
lub ewentualnie podnieść wersję serwera supli