Ankündigung

Einklappen
Keine Ankündigung bisher.

MQTT API Server und MQTT Clients - LBS19001051 - LBS19001054

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Ich kenne mich mit Robonect nicht aus, aber ich vermute, dass du einen MQTT Broker brauchst falls du noch keinen im Einsatz hast oder Robonect nicht zu einem anderen externen MQTT Broker verbindet. Ich denke alles andere solltest du schon haben, da du vermutlich ja nur die MQTT Client LBS benötigst (publish & subscribe).
    Installationsanleitung eines MQTT Brokers müsste eigentlich auch irgendwo hier im MQTT Thread verlinkt sein.

    Kommentar


      Ich kenne den Worx-LBS nicht, habe aber Robonect, zahlreiche Geräte mit Tasmota und die Heizung per MQTT angebunden. Dabei reicht ein MQTT-Broker (Mosquitto) im Netz. Über diesen einen Broker werden dann alle Geräte versorgt.

      Kommentar


        jonofe
        Kleiner Verbesserungsvorschlag:
        Die Client-ID Deiner LBS ist nicht eindeutig genug in meinen Augen.
        Wenn sich ein zweiter Client mit der gleichen ID am Broker anmeldet, fliegt der erste Client wieder raus.
        Code:
        [COLOR=#393930][FONT=EDOMIfontMono][SIZE=10px]Exception caught: The connection was lost. (1388)[/SIZE][/FONT][/COLOR]
        Daher schlage ich vor, dass Du die Client ID noch unterscheidbarer machst.

        Das passiert zum Beispiel, wenn man ein Projekt von einem Rechner zum anderen umzieht und mit dem alten Projekt weiterarbeiten will.

        Aktuell:
        PHP-Code:
         $client = new Mosquitto\Client('EDOMI MQTT Publish Server (' $id ')'); 
        Wobei $id die LBS Instanz ID ist.

        Zum Beispiel könnte man die ID noch mit einem zufälligen Wert erweitern.

        Kommentar


          Zitat von jonofe Beitrag anzeigen
          Code:

          yum -y install mosquitto mkdir /var/log/mosquitto chown mosquitto:mosquitto /var/log/mosquitto
          Hier mein /etc/mosquitto/mosquitto.conf Konfigurationsfile:
          Code:

          pid_file /var/run/mosquitto.pid log_dest file /var/log/mosquitto/mosquitto.log listener 1883 persistence true persistence_location /var/lib/mosquitto/ persistence_file mosquitto.db log_dest syslog log_dest stdout log_dest topic log_type all connection_messages true log_timestamp true allow_anonymous false password_file /etc/mosquitto/pwfile
          Danach kann mit
          Code:

          mosquitto_passwd -c /etc/mosquitto/pwfile edomi
          ein Passwort für den User 'edomi' angelegt werden und Mosquitto neu gestartett werden:
          Code:

          /etc/init.d/mosquitto restart
          Jetzt ist der Mosquitto Broker einsatzfähig und man kann die LBS entsprechend konfigurieren mit IP (IP des Mosquitto Servers), Port (1883), User (edomi), Password (wie gerade festgelegt).

          In EDOMI kann MQTT nun wie folgt konfiguriert werden:
          Hallo,

          habe den Worx LBS am laufen. Wollte nun den Broker installieren für andere MQTT Anwendungen.

          Die Zeile "chown mosquitto:mosquitto /var/log/mosquitto" wird allerdings mit einem Fehler quittiert. Und zwar: chown: ungültiger Benutzer: „mosquitto:mosquitto“

          Somit kann ich dann auch nicht die config Datei anlegen. Diese kann nicht gespeichert werden.

          Wahrscheinlich wieder ne Dummy frage, komme hier aber irgendwie nicht weiter.

          Gruß Michael

          Kommentar


            Habe ich irgendwas so offensichtliches verkehrt gemacht? Hat keiner eine Idee warum ich da nicht weiter komme?

            Kommentar


              Dir fehlt der Benutzer mosquitto. Keine Ahnung, ob der im script angelegt wird.... Schau mal in der Anleitung, ob Du was in der Richtung findest. Ich kann gerade nicht nachschauen.

              Kommentar


                Hallo,

                ich habe jetzt noch mal nach geschaut. Konnte aber jetzt nicht finden wo die User Dateien usw. abgelegt sind.
                Ist die Installationsvorgabe von jonofe extra für Edomi angepasst. Ich wollte jetzt nicht noch mal Mosquitto installieren und mir irgendwas zerschiessen.

                Gibt es denn jemanden der die Bausteine installiert hat und danach den Broker installiert hat?

                Gruß Michael

                Kommentar


                  Guten Abend,

                  ich habe jetzt noch einmal eine Stunde versucht es zu installieren. Habe die Anleitung in den MQTT Bausteinen befolgt und hier ist auch kein Fehler gekommen.
                  Meine Worx Abfrage läuft auch noch. Also habe ich wohl nix zerschossen.

                  Will ich jetzt den Broker installieren kommt im Installationsscript ein Error. Dieser ist mir vorher nicht wirklich aufgefallen. Hier ein Auszug:

                  --> Finished Dependency Resolution
                  Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt)
                  Requires: libwebsockets
                  You could try using --skip-broken to work around the problem
                  You could try running: rpm -Va --nofiles --nodigest

                  Kann da jemand was mit anfangen?

                  Vielen dank und einen schönen Abend euch...

                  Kommentar


                    Am besten das ganz Log der gesamten Installation posten.
                    Welche CentOS Version?

                    Kommentar


                      Hallo,

                      Centos 6.5 ist installiert.

                      [root@edomi tmp]# yum -y install php-process git gcc make mysql-devel
                      Loaded plugins: fastestmirror
                      Loading mirror speeds from cached hostfile
                      * base: ftp.plusline.net
                      * extras: mirror.wiuwiu.de
                      * updates: mirror.wiuwiu.de
                      Setting up Install Process
                      Package php-process-5.3.3-49.el6.x86_64 already installed and latest version
                      Package git-1.7.1-9.el6_9.x86_64 already installed and latest version
                      Package gcc-4.4.7-23.el6.x86_64 already installed and latest version
                      Package 1:make-3.81-23.el6.x86_64 already installed and latest version
                      Package mysql-devel-5.1.73-8.el6_8.x86_64 already installed and latest version
                      Nothing to do
                      [root@edomi tmp]# cd /tmp
                      [root@edomi tmp]# git clone https://github.com/jonofe/lib_mysqludf_sys
                      Initialized empty Git repository in /tmp/lib_mysqludf_sys/.git/
                      remote: Enumerating objects: 17, done.
                      remote: Total 17 (delta 0), reused 0 (delta 0), pack-reused 17
                      Unpacking objects: 100% (17/17), done.
                      [root@edomi tmp]# cd lib_mysqludf_sys/
                      [root@edomi lib_mysqludf_sys]# ./install.sh
                      Compiling the MySQL UDF
                      gcc -DMYSQL_DYNAMIC_PLUGIN -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o /usr/lib64/mysql/plugin/lib_mysqludf_sys.so
                      MySQL UDF compiled successfully

                      Please provide your MySQL root password
                      MySQL UDF installed successfully
                      [root@edomi lib_mysqludf_sys]# ./install.sh
                      Compiling the MySQL UDF
                      gcc -DMYSQL_DYNAMIC_PLUGIN -fPIC -Wall -I/usr/include/mysql -I. -shared lib_mysqludf_sys.c -o /usr/lib64/mysql/plugin/lib_mysqludf_sys.so
                      MySQL UDF compiled successfully

                      Please provide your MySQL root password
                      MySQL UDF installed successfully
                      [root@edomi lib_mysqludf_sys]# cd /tmp
                      [root@edomi tmp]# rm -rf lib_mysqludf_sys/
                      [root@edomi tmp]# git clone https://github.com/jonofe/Mosquitto-PHP
                      Initialized empty Git repository in /tmp/Mosquitto-PHP/.git/
                      remote: Enumerating objects: 1153, done.
                      remote: Total 1153 (delta 0), reused 0 (delta 0), pack-reused 1153
                      Receiving objects: 100% (1153/1153), 246.48 KiB, done.
                      Resolving deltas: 100% (713/713), done.
                      [root@edomi tmp]# cd Mosquitto-PHP
                      [root@edomi Mosquitto-PHP]# cp home_oojah_mqtt.repo /etc/yum.repos.d/
                      cp: „/etc/yum.repos.d/home_oojah_mqtt.repo“ überschreiben? y
                      [root@edomi Mosquitto-PHP]# cp home_oojah_mqtt.repo /etc/yum.repos.d/
                      cp: „/etc/yum.repos.d/home_oojah_mqtt.repo“ überschreiben? Y
                      [root@edomi Mosquitto-PHP]# cp home_oojah_mqtt.repo /etc/yum.repos.d/
                      cp: „/etc/yum.repos.d/home_oojah_mqtt.repo“ überschreiben?
                      [root@edomi Mosquitto-PHP]# yum -y install libmosquitto1 libmosquitto-devel mosquitto-clients
                      Loaded plugins: fastestmirror
                      Loading mirror speeds from cached hostfile
                      * base: ftp.plusline.net
                      * extras: mirror.wiuwiu.de
                      * updates: mirror.wiuwiu.de
                      home_oojah_mqtt | 1.3 kB 00:00
                      Setting up Install Process
                      Package libmosquitto1-1.5.5-1.1.x86_64 already installed and latest version
                      Package libmosquitto-devel-1.5.5-1.1.x86_64 already installed and latest version
                      Package mosquitto-clients-1.5.5-1.1.x86_64 already installed and latest version
                      Nothing to do
                      [root@edomi Mosquitto-PHP]# phpize
                      Configuring for:
                      PHP Api Version: 20090626
                      Zend Module Api No: 20090626
                      Zend Extension Api No: 220090626
                      [root@edomi Mosquitto-PHP]# ./configure --with-mosquitto=/usr/lib64
                      checking for grep that handles long lines and -e... /bin/grep
                      checking for egrep... /bin/grep -E
                      checking for a sed that does not truncate output... /bin/sed
                      checking for cc... cc
                      checking for C compiler default output file name... a.out
                      checking whether the C compiler works... yes
                      checking whether we are cross compiling... no
                      checking for suffix of executables...
                      checking for suffix of object files... o
                      checking whether we are using the GNU C compiler... yes
                      checking whether cc accepts -g... yes
                      checking for cc option to accept ISO C89... none needed
                      checking how to run the C preprocessor... cc -E
                      checking for icc... no
                      checking for suncc... no
                      checking whether cc understands -c and -o together... yes
                      checking for system library directory... lib
                      checking if compiler supports -R... no
                      checking if compiler supports -Wl,-rpath,... yes
                      checking build system type... x86_64-unknown-linux-gnu
                      checking host system type... x86_64-unknown-linux-gnu
                      checking target system type... x86_64-unknown-linux-gnu
                      checking for PHP prefix... /usr
                      checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib
                      checking for PHP extension directory... /usr/lib64/php/modules
                      checking for PHP installed headers prefix... /usr/include/php
                      checking if debug is enabled... no
                      checking if zts is enabled... no
                      checking for re2c... no
                      configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
                      checking for gawk... gawk
                      checking for mosquitto support... yes, shared
                      checking for mosquitto files in default path... checking /usr... found in /usr
                      checking for ANSI C header files... yes
                      checking for sys/types.h... yes
                      checking for sys/stat.h... yes
                      checking for stdlib.h... yes
                      checking for string.h... yes
                      checking for memory.h... yes
                      checking for strings.h... yes
                      checking for inttypes.h... yes
                      checking for stdint.h... yes
                      checking for unistd.h... yes
                      checking whether strerror_r is declared... yes
                      checking for strerror_r... yes
                      checking whether strerror_r returns char *... no
                      checking for a sed that does not truncate output... (cached) /bin/sed
                      checking for fgrep... /bin/grep -F
                      checking for ld used by cc... /usr/bin/ld
                      checking if the linker (/usr/bin/ld) is GNU ld... yes
                      checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
                      checking the name lister (/usr/bin/nm -B) interface... BSD nm
                      checking whether ln -s works... yes
                      checking the maximum length of command line arguments... 1966080
                      checking whether the shell understands some XSI constructs... yes
                      checking whether the shell understands "+="... yes
                      checking for /usr/bin/ld option to reload object files... -r
                      checking for objdump... objdump
                      checking how to recognize dependent libraries... pass_all
                      checking for ar... ar
                      checking for strip... strip
                      checking for ranlib... ranlib
                      checking command to parse /usr/bin/nm -B output from cc object... ok
                      checking for dlfcn.h... yes
                      checking for objdir... .libs
                      checking if cc supports -fno-rtti -fno-exceptions... no
                      checking for cc option to produce PIC... -fPIC -DPIC
                      checking if cc PIC flag -fPIC -DPIC works... yes
                      checking if cc static flag -static works... no
                      checking if cc supports -c -o file.o... yes
                      checking if cc supports -c -o file.o... (cached) yes
                      checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
                      checking whether -lc should be explicitly linked in... no
                      checking dynamic linker characteristics... GNU/Linux ld.so
                      checking how to hardcode library paths into programs... immediate
                      checking whether stripping libraries is possible... yes
                      checking if libtool supports shared libraries... yes
                      checking whether to build shared libraries... yes
                      checking whether to build static libraries... no
                      configure: creating ./config.status
                      config.status: creating config.h
                      config.status: executing libtool commands
                      [root@edomi Mosquitto-PHP]# make
                      /bin/sh /tmp/Mosquitto-PHP/libtool --mode=compile cc -I. -I/tmp/Mosquitto-PHP -DPHP_ATOM_INC -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/Mosquitto-PHP/mosquitto.c -o mosquitto.lo
                      libtool: compile: cc -I. -I/tmp/Mosquitto-PHP -DPHP_ATOM_INC -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/Mosquitto-PHP/mosquitto.c -fPIC -DPIC -o .libs/mosquitto.o
                      /tmp/Mosquitto-PHP/mosquitto.c: In Funktion »php_mosquitto_handle_errno«:
                      /tmp/Mosquitto-PHP/mosquitto.c:941: Warnung: Übergabe des Arguments 2 von »zend_throw_exception« entfernt Kennzeichner von Zeiger-Ziel-Typ
                      /usr/include/php/Zend/zend_exceptions.h:43: Anmerkung: expected »char *« but argument is of type »const char *«
                      /bin/sh /tmp/Mosquitto-PHP/libtool --mode=compile cc -I. -I/tmp/Mosquitto-PHP -DPHP_ATOM_INC -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/Mosquitto-PHP/mosquitto_message.c -o mosquitto_message.lo
                      libtool: compile: cc -I. -I/tmp/Mosquitto-PHP -DPHP_ATOM_INC -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /tmp/Mosquitto-PHP/mosquitto_message.c -fPIC -DPIC -o .libs/mosquitto_message.o
                      /bin/sh /tmp/Mosquitto-PHP/libtool --mode=link cc -DPHP_ATOM_INC -I/tmp/Mosquitto-PHP/include -I/tmp/Mosquitto-PHP/main -I/tmp/Mosquitto-PHP -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o mosquitto.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/Mosquitto-PHP/modules mosquitto.lo mosquitto_message.lo -lmosquitto
                      libtool: link: cc -shared .libs/mosquitto.o .libs/mosquitto_message.o -lmosquitto -Wl,-soname -Wl,mosquitto.so -o .libs/mosquitto.so
                      libtool: link: ( cd ".libs" && rm -f "mosquitto.la" && ln -s "../mosquitto.la" "mosquitto.la" )
                      /bin/sh /tmp/Mosquitto-PHP/libtool --mode=install cp ./mosquitto.la /tmp/Mosquitto-PHP/modules
                      libtool: install: cp ./.libs/mosquitto.so /tmp/Mosquitto-PHP/modules/mosquitto.so
                      libtool: install: cp ./.libs/mosquitto.lai /tmp/Mosquitto-PHP/modules/mosquitto.la
                      libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /tmp/Mosquitto-PHP/modules
                      ----------------------------------------------------------------------
                      Libraries have been installed in:
                      /tmp/Mosquitto-PHP/modules

                      If you ever happen to want to link against installed libraries
                      in a given directory, LIBDIR, you must either use libtool, and
                      specify the full pathname of the library, or use the `-LLIBDIR'
                      flag during linking and do at least one of the following:
                      - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
                      during execution
                      - add LIBDIR to the `LD_RUN_PATH' environment variable
                      during linking
                      - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
                      - have your system administrator add LIBDIR to `/etc/ld.so.conf'

                      See any operating system documentation about shared libraries for
                      more information, such as the ld(1) and ld.so(8) manual pages.
                      ----------------------------------------------------------------------

                      Build complete.
                      Don't forget to run 'make test'.

                      [root@edomi Mosquitto-PHP]# make test

                      Build complete.
                      Don't forget to run 'make test'.


                      ================================================== ===================
                      PHP : /usr/bin/php
                      PHP_SAPI : cli
                      PHP_VERSION : 5.3.3
                      ZEND_VERSION: 2.3.0
                      PHP_OS : Linux - Linux edomi 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64
                      INI actual : /tmp/Mosquitto-PHP/tmp-php.ini
                      More .INIs :
                      CWD : /tmp/Mosquitto-PHP
                      Extra dirs :
                      VALGRIND : Not used
                      ================================================== ===================
                      TIME START 2019-08-29 19:31:50
                      ================================================== ===================
                      PASS Mosquitto\Client::__construct() [tests/Client/__construct.phpt]
                      PASS Mosquitto\Client::setWill() [tests/Client/clearWill.phpt]
                      PASS Mosquitto\Client::connect() [tests/Client/connect.phpt]
                      FAIL Mosquitto\Client::disconnect() [tests/Client/disconnect.phpt]
                      FAIL Mosquitto\Client::exitLoop() [tests/Client/exitLoop.phpt]
                      FAIL Mosquitto\Client::getSocket() [tests/Client/getSocket.phpt]
                      FAIL Mosquitto\Client::loop() [tests/Client/loop.phpt]
                      FAIL Mosquitto\Client::loopForever() [tests/Client/loopForever.phpt]
                      FAIL Mosquitto\Client:nConnect() [tests/Client/onConnect.phpt]
                      FAIL Mosquitto\Client:nDisconnect() [tests/Client/onDisconnect.phpt]
                      FAIL Mosquitto\Client:nLog() [tests/Client/onLog.phpt]
                      FAIL Mosquitto\Client:nMessage() [tests/Client/onMessage.phpt]
                      FAIL Mosquitto\Client:nSubscribe() [tests/Client/onSubscribe.phpt]
                      FAIL Mosquitto\Client:nUnsubscribe() [tests/Client/onUnsubscribe.phpt]
                      FAIL Mosquitto\Client:ublish() [tests/Client/publish.phpt]
                      PASS Mosquitto\Client::setCredentials() [tests/Client/setCredentials.phpt]
                      PASS Mosquitto\Client::setMaxInFlightMessages() [tests/Client/setMaxInFlightMessages.phpt]
                      PASS Mosquitto\Client::setMessageRetry() [tests/Client/setMessageRetry.phpt]
                      PASS Mosquitto\Client::setReconnectDelay() [tests/Client/setReconnectDelay.phpt]
                      FAIL Mosquitto\Client::setTlsCertificates() [tests/Client/setTlsCertificates.phpt]
                      PASS Mosquitto\Client::setTlsInsecure() [tests/Client/setTlsInsecure.phpt]
                      PASS Mosquitto\Client::setTlsOptions() [tests/Client/setTlsOptions.phpt]
                      FAIL Mosquitto\Client::setTlsPSK() [tests/Client/setTlsPSK.phpt]
                      PASS Mosquitto\Client::setWill() [tests/Client/setWill.phpt]
                      FAIL Mosquitto\Client::subscribe() [tests/Client/subscribe.phpt]
                      FAIL Mosquitto\Client::unsubscribe() [tests/Client/unsubscribe.phpt]
                      PASS Mosquitto\Message::__construct() [tests/Message/__construct.phpt]
                      PASS Mosquitto\Message::tokeniseTopic() [tests/Message/tokeniseTopic.phpt]
                      PASS Mosquitto\Message::topicMatchesSub() [tests/Message/topicMatchesSub.phpt]
                      ================================================== ===================
                      TIME END 2019-08-29 19:31:51

                      ================================================== ===================
                      TEST RESULT SUMMARY
                      ---------------------------------------------------------------------
                      Exts skipped : 0
                      Exts tested : 29
                      ---------------------------------------------------------------------

                      Number of tests : 29 29
                      Tests skipped : 0 ( 0.0%) --------
                      Tests warned : 0 ( 0.0%) ( 0.0%)
                      Tests failed : 16 ( 55.2%) ( 55.2%)
                      Expected fail : 0 ( 0.0%) ( 0.0%)
                      Tests passed : 13 ( 44.8%) ( 44.8%)
                      ---------------------------------------------------------------------
                      Time taken : 1 seconds
                      ================================================== ===================

                      ================================================== ===================
                      FAILED TEST SUMMARY
                      ---------------------------------------------------------------------
                      Mosquitto\Client::disconnect() [tests/Client/disconnect.phpt]
                      Mosquitto\Client::exitLoop() [tests/Client/exitLoop.phpt]
                      Mosquitto\Client::getSocket() [tests/Client/getSocket.phpt]
                      Mosquitto\Client::loop() [tests/Client/loop.phpt]
                      Mosquitto\Client::loopForever() [tests/Client/loopForever.phpt]
                      Mosquitto\Client:nConnect() [tests/Client/onConnect.phpt]
                      Mosquitto\Client:nDisconnect() [tests/Client/onDisconnect.phpt]
                      Mosquitto\Client:nLog() [tests/Client/onLog.phpt]
                      Mosquitto\Client:nMessage() [tests/Client/onMessage.phpt]
                      Mosquitto\Client:nSubscribe() [tests/Client/onSubscribe.phpt]
                      Mosquitto\Client:nUnsubscribe() [tests/Client/onUnsubscribe.phpt]
                      Mosquitto\Client:ublish() [tests/Client/publish.phpt]
                      Mosquitto\Client::setTlsCertificates() [tests/Client/setTlsCertificates.phpt]
                      Mosquitto\Client::setTlsPSK() [tests/Client/setTlsPSK.phpt]
                      Mosquitto\Client::subscribe() [tests/Client/subscribe.phpt]
                      Mosquitto\Client::unsubscribe() [tests/Client/unsubscribe.phpt]
                      ================================================== ===================

                      You may have found a problem in PHP.
                      We would like to send this report automatically to the
                      PHP QA team, to give us a better understanding of how
                      the test cases are doing. If you don't want to send it
                      immediately, you can choose "s" to save the report to
                      a file that you can send us later.
                      Do you want to send this report now? [Yns]: s
                      Please send /tmp/Mosquitto-PHP/php_test_results_20190829_1931.txt to qa-reports@lists.php.net manually, thank you.
                      [root@edomi Mosquitto-PHP]# make install
                      Installing shared extensions: /usr/lib64/php/modules/
                      [root@edomi Mosquitto-PHP]# cd /tmp
                      [root@edomi tmp]# rm -rf Mosquitto-PHP
                      [root@edomi tmp]# echo "extension=mosquitto.so" > /etc/php.d/mosquitto.ini
                      [root@edomi tmp]# php -m | grep mosquitto
                      mosquitto
                      [root@edomi tmp]# yum -y install mosquitto
                      Loaded plugins: fastestmirror
                      Loading mirror speeds from cached hostfile
                      * base: ftp.plusline.net
                      * extras: mirror.wiuwiu.de
                      * updates: mirror.wiuwiu.de
                      Setting up Install Process
                      Resolving Dependencies
                      --> Running transaction check
                      ---> Package mosquitto.x86_64 0:1.5.5-1.1 will be installed
                      --> Processing Dependency: uuid for package: mosquitto-1.5.5-1.1.x86_64
                      --> Processing Dependency: tcp_wrappers for package: mosquitto-1.5.5-1.1.x86_64
                      --> Processing Dependency: libwebsockets for package: mosquitto-1.5.5-1.1.x86_64
                      --> Running transaction check
                      ---> Package mosquitto.x86_64 0:1.5.5-1.1 will be installed
                      --> Processing Dependency: libwebsockets for package: mosquitto-1.5.5-1.1.x86_64
                      ---> Package tcp_wrappers.x86_64 0:7.6-58.el6 will be installed
                      --> Processing Dependency: tcp_wrappers-libs = 7.6-58.el6 for package: tcp_wrappers-7.6-58.el6.x86_64
                      ---> Package uuid.x86_64 0:1.6.1-10.el6 will be installed
                      --> Running transaction check
                      ---> Package mosquitto.x86_64 0:1.5.5-1.1 will be installed
                      --> Processing Dependency: libwebsockets for package: mosquitto-1.5.5-1.1.x86_64
                      ---> Package tcp_wrappers-libs.x86_64 0:7.6-57.el6 will be updated
                      ---> Package tcp_wrappers-libs.x86_64 0:7.6-58.el6 will be an update
                      --> Finished Dependency Resolution
                      Error: Package: mosquitto-1.5.5-1.1.x86_64 (home_oojah_mqtt)
                      Requires: libwebsockets
                      You could try using --skip-broken to work around the problem
                      You could try running: rpm -Va --nofiles --nodigest

                      Gruß Michael

                      Kommentar


                        Versuch mal

                        Code:
                        yum -y install gcc gcc-c++ openssl-devel c-ares-devel libuuid-devel wget cmake
                        git clone https://libwebsockets.org/repo/libwebsockets
                        cd libwebsockets
                        mkdir bulid
                        cd bulid
                        cmake ..
                        make
                        make install
                        und dann nochmal yum -y install mosquitto

                        Mein Empfehlung wäre übrigens den MQTT Broker auf einem RPI zu betreiben und nicht auf dem EDOMI Server, insbesondere wenn CentOS 6.5 verwendet wird.

                        Kommentar


                          Danke, werde es gleich testen.

                          Zitat von jonofe Beitrag anzeigen
                          Mein Empfehlung wäre übrigens den MQTT Broker auf einem RPI zu betreiben und nicht auf dem EDOMI Server, insbesondere wenn CentOS 6.5 verwendet wird.
                          kostet der Broker zuviel Leistung? Oder warum wird das empfohlen?

                          Kommentar


                            Weil es nicht nativ für CentOS verfügbar ist, sondern nur mit vielen komplizierten Installationen. Bei CentOS7 wird es vermutlich anders sein.

                            Kommentar


                              Okay, auch mit der Anleitung haut es nicht hin. Es kommt der gleiche Fehler.
                              Werde es dann mal mit nem Pi Versuchen.

                              Trotzdem vielen Dank!

                              Kommentar


                                Hallo @janofe

                                kannst Du noch einen prefix in den Subscribe Server einbauen?

                                Ich kann kein edomi/set/internal/ko senden. Bei mir ist Systembedingt immer ein prefix in der Form /Haus/io/ vorangestellt.

                                Vielen Dank

                                Gruß Hartwig

                                Kommentar

                                Lädt...
                                X