You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by cd...@apache.org on 2020/10/06 15:21:40 UTC

[plc4x] 02/04: - Kickoff

This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch feature/plc4go
in repository https://gitbox.apache.org/repos/asf/plc4x.git

commit 07c1ab3592c9ec5eabc32e0c2eb3b8fb8fc9029e
Author: Christofer Dutz <ch...@c-ware.de>
AuthorDate: Tue Oct 6 13:44:45 2020 +0200

    - Kickoff
---
 pom.xml                                             |  2 ++
 sandbox/plc4go/pom.xml                              | 21 ++++++++++++++++++++-
 .../plc4go/src/plc4go/modbus/readwrite/Message.go   | 10 ++++++++++
 3 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 0304957..bab40a8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -912,6 +912,8 @@
 
             <!-- Exclude a temp file needed by Docker -->
             <exclude>project_version</exclude>
+
+            <exclude>plc4go/**</exclude>
           </excludes>
         </configuration>
       </plugin>
diff --git a/sandbox/plc4go/pom.xml b/sandbox/plc4go/pom.xml
index d4601c2..90c81e9 100644
--- a/sandbox/plc4go/pom.xml
+++ b/sandbox/plc4go/pom.xml
@@ -33,6 +33,25 @@
   <name>Sandbox: PLC4Go</name>
   <description>Implementation of the protocol adapters for usage as Go(lang) library.</description>
 
-
+  <plugins>
+    <plugin>
+      <groupId>com.igormaznitsa</groupId>
+      <artifactId>mvn-golang-wrapper</artifactId>
+      <version>2.3.5</version>
+      <extensions>true</extensions>
+      <executions>
+        <execution>
+          <goals>
+            <goal>run</goal>
+          </goals>
+          <configuration>
+            <packages>
+              <package>main.go</package>
+            </packages>
+          </configuration>
+        </execution>
+      </executions>
+    </plugin>
+  </plugins>
 
 </project>
\ No newline at end of file
diff --git a/sandbox/plc4go/src/plc4go/modbus/readwrite/Message.go b/sandbox/plc4go/src/plc4go/modbus/readwrite/Message.go
new file mode 100644
index 0000000..3c47b6f
--- /dev/null
+++ b/sandbox/plc4go/src/plc4go/modbus/readwrite/Message.go
@@ -0,0 +1,10 @@
+package readwrite
+
+import (
+
+)
+
+type Message interface {
+    lengthInBytes() int16
+    lengthInBits() int16
+}
\ No newline at end of file