Ankündigung

Einklappen
Keine Ankündigung bisher.

EibLib/Ip & EibNet/IP

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

    #46
    Zitat von jef2000 Beitrag anzeigen

    From the error message you receive, I would say that the second parameter of GroupRead function doesn't contain a correctly formatted group address.
    There is no reason to suspect the parameter, as it is the same used in the first call.... until I realize I've made a big mistake
    The second call to GroupRead is issued from within another function and I thought the parameters are inherited from the main script. Not true in PHP.
    I declared the variables as "global" within the calling function, but then I got again the original error messages.
    So I applied again both of your previous suggestions, no luck. The original error message is back again:
    PHP Fatal error: Cannot redeclare class EIBBuffer in /usr/share/php5/eib
    client.php on line 28
    Thank you for your help.

    Kommentar


      #47
      Zitat von mkoegler Beitrag anzeigen
      First parameter is an EIBD connection
      I did a cut & paste of the function cacheread and tried to use it as described. But I get

      PHP Fatal error: Call to undefined function gaddrparse() in /srv/www/htdocs/Cisco/interieur/premier/chambre-amis/eclairage-plafond.php on line 75
      I'm not sure I may use it "as is", maybe it expects some environment ?
      I tried to add "require('eibclient.php');" but it has other side effects.

      Zitat von mkoegler Beitrag anzeigen
      send.php contains code for sending. If you want to adapt the application to your installation, you need to modify config.php.
      OK, I might resort to this solution if I get stuck. But I'm a bit reluctant as the interface with the Cisco phone isn't very easy and my application is almost finished (besides refreshing the KNX status to display the current icone)

      Thank you for your help

      Kommentar


        #48
        Zitat von jef2000 Beitrag anzeigen
        You can also replace it by require_once('eibclient.php'); to be sure it doesn't try to include it multiple times.
        I've streamlined the code a bit and put "require_once" everywhere I could (even where it doesn't make sense )
        I works
        I have a (almost) decent Visu on the phone now.

        Merci Jean-François

        Kommentar

        Lädt...
        X