Initial commit, derived from former development (2018-2020=
This commit is contained in:
16
snap7a.go
Normal file
16
snap7a.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user