forked from johnlauer/serial-port-json-server
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Different serial libraries used in multiple places in the code #37
Comments
Probably John Lauer one
…On Apr 27, 2017 12:51 PM, "Daniel" ***@***.***> wrote:
Which should be userd?
For example, seriallist.go has the following
import (
//"fmt"
//"github.com/lxn/win"
//"github.com/mattn/go-ole"
//"github.com/mattn/go-ole/oleutil"
"github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
//"github.com/tarm/goserial"
//"github.com/johnlauer/goserial"
"log"
"os"
"strings"
"github.com/facchinm/go-serial"
//"encoding/binary"
"strconv"
"sync"
//"syscall"
"regexp"
)
while serialport.go has
import (
"bytes"
"encoding/json"
"encoding/base64"
"sync"
"github.com/johnlauer/goserial"
//"github.com/facchinm/go-serial"
"io"
"log"
"strconv"
"strings"
"time"
)
Which is it, "github.com/johnlauer/goserial" or "
github.com/facchinm/go-serial" ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#37>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AHidbUEIKJVLxdIhY0-AaIaIsErbeyWoks5r0PG8gaJpZM4NKsGS>
.
|
Neither apply cleanly in all cases. :P It seems feature sets have diverged and it also seems unwise to be using two serial port libraries. |
When I try and replace all occurences of "github.com/facchinm/go-serial" with johnlauer/goserial I get the following build error
|
i'd leave it alone then. serial libraries serve different purposes. one
purpose is a library that has better serial port listing capabilities.
another purpose is the raw opening of the port.
…On Thu, Apr 27, 2017 at 3:10 PM, Daniel ***@***.***> wrote:
When I try and replace all occurences of serial lib with
johnlauer/goserial I get the following build error
./programmer.go:373: undefined: serial.Mode
./programmer.go:378: too many arguments in call to serial.OpenPort
have (string, <T>)
want (*serial.Config)
./programmer.go:400: undefined: serial.GetPortsList
./programmer.go:404: undefined: serial.GetPortsList
./programmer.go:438: undefined: serial.Mode
./programmer.go:443: too many arguments in call to serial.OpenPort
have (string, <T>)
want (*serial.Config)
./seriallist.go:32: undefined: serial.GetPortsList
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#37 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHidbYgzVxsEYwiyToU2MmHWQKzHYV-Yks5r0RJZgaJpZM4NKsGS>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Which should be used?
For example, seriallist.go has the following
while serialport.go has
Which is it,
"github.com/johnlauer/goserial"
or"github.com/facchinm/go-serial"
?A couple other files have this problem too.
The text was updated successfully, but these errors were encountered: