Initial commit, derived from former development (2018-2020=

This commit is contained in:
2023-11-02 09:17:47 +01:00
parent e234ebcaf9
commit b2948546dc
7 changed files with 1380 additions and 3 deletions

16
snap7a.go Normal file
View File

@@ -0,0 +1,16 @@
package wrap7
/*
#cgo CFLAGS: -O2 -march=native
#cgo LDFLAGS: -lm -lsnap7 -L${SRCDIR}/snap7-full-1.4.2/build/bin/x86_64-linux/
*/
import "C"
import (
"github.com/gookit/color"
)
//export logSnap7Server
func logSnap7Server(text *C.char) {
color.RGB(0x00, 0xa4, 0xb4, false).Printf("%s\n", C.GoString(text)) // Die Siemens-Farben
}