Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.8 kB
5
Indexable
Never
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino: In function 'bool Connect()':
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino:70:23: error: request for member 'ConnectTo' in 'Client', which is of non-class type 'S7Client()'
     int Result=Client.ConnectTo(PLC,
                       ^~~~~~~~~
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino:76:71: error: request for member 'GetPDULength' in 'Client', which is of non-class type 'S7Client()'
       Serial.print("Connected ! PDU Length = ");Serial.println(Client.GetPDULength());
                                                                       ^~~~~~~~~~~~
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino: In function 'void CheckError(int)':
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino:96:12: error: request for member 'Disconnect' in 'Client', which is of non-class type 'S7Client()'
     Client.Disconnect();
            ^~~~~~~~~~
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino: In function 'void loop()':
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino:127:18: error: request for member 'Connected' in 'Client', which is of non-class type 'S7Client()'
   while (!Client.Connected)
                  ^~~~~~~~~
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino:137:14: error: request for member 'WriteArea' in 'Client', which is of non-class type 'S7Client()'
       Client.WriteArea(S7AreaDB, // We are requesting DB access
              ^~~~~~~~~
C:\Users\Lukas\Desktop\PLC Arduino\PLC Arduino.ino:146:15: error: request for member 'WriteArea' in 'Client', which is of non-class type 'S7Client()'
        Client.WriteArea(S7AreaDB, // We are requesting DB access
               ^~~~~~~~~

exit status 1

Compilation error: request for member 'ConnectTo' in 'Client', which is of non-class type 'S7Client()'