Ankündigung

Einklappen

Serverwartung 21.2.



Am 21.2. im Laufe des späten Abends wird eine Serverwartung durchgeführt. Das Forum ist dadurch für gut zwei Stunden nicht erreichbar.
Es wird eine Wartungsseite geschaltet.

Mehr anzeigen
Weniger anzeigen

Can not use new EIBstudio because CRLF variable is already predefined

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

    Can not use new EIBstudio because CRLF variable is already predefined

    I wanted to upgrade my EIBstudio from 3.015 to latest version 3.203 but I get an error saying that a variable CRLF can not be re-defined again.

    In my program I use the CRLF variable in pieces of the program that I copied from somebody else and that I modified to send TCP commands.
    Some of these pieces of code are the following:

    CRLF = $$
    GET_1 = $$
    GET_2 = $$
    GET_3 = $$
    GET_4 = $$
    GET_5 = $$
    String = $$
    TCP_ConnectionState = 6u08

    gudeSendDelay = 500u64
    gudePort = 80u16
    gudeIP = 192.168.1.40
    //gudeInit=0b01
    gudeCommandSent=0b01
    gudeToggle=0b01
    gudeTrigger=0b01
    gudeOFF=$GET /?Allesuitzetten HTTP/1.1$
    gudeCommand = $$

    // TCP message

    if gudeTrigger then \\
    stringset(CRLF, 0x0A0Du16, 0u16); \\
    GET_1 = gudeCommand + CRLF; \\
    GET_2 = $User-Agent: Wget/ 1.0.10$ + CRLF; \\
    GET_3 = $Accept: */*$ + CRLF; \\
    GET_4 = $Host: 192.168.1.40$ + CRLF; \\
    GET_5 = $Connection: Keep-Alive$ + CRLF + CRLF; \\
    String = GET_1 + GET_2 + GET_3 + GET_4 + GET_5 \\
    endif


    It turns out that in the new EIBstudio version, there is also a CRLF variable that is predefined. The definition has the value "tostring(0xd,0xa)
    Since my original code defines a CRLF value which is already predefined, I now get the error:

    " >CRLF = $$< in file "C:/Users/Perry/Documents/KNX/Enertex producten/EibStudio-win V3.203/EibStudio-win/EibstudioData/tmpApp.txt"
    Predefined variable cannot be re-defined in >CRLF=$$<
    ID:24
    EibParser ended with an error"

    I tried replacing all instances of CRLF with CRFX to see if I could just use a different variable, but then the TCP/http commands from the EIBPC no longer work.
    Now I am not sure how to solve this. I went back to using the old EIBstudio version and its code and everything works as before. However, I would like to upgrade to latest version.

    Any tips on what I can do to get it working?

    Thanks in advance,
    Perry


    #2
    CRLF is now as predefined Constant. Just delete
    Code:
    CRLF = $$
    ...
    stringset(CRLF, 0x0A0Du16, 0u16); \\
    in your code above.
    offizielles Supportforum für den Enertex® EibPC: https://knx-user-forum.de/eibpc/
    Enertex Produkte kaufen

    Kommentar


      #3
      Thank you, it works fine now.

      Kommentar

      Lädt...
      X