converting println's to proper log output
This commit is contained in:
parent
f7667fb4e8
commit
bd4ce71b70
@ -1,6 +1,6 @@
|
||||
package blueStuff
|
||||
|
||||
//import "git.tcp.direct/kayos/prototooth"
|
||||
import "git.tcp.direct/kayos/prototooth"
|
||||
|
||||
//controls connections to found devices to get service characteristics
|
||||
|
||||
@ -9,7 +9,7 @@ package blueStuff
|
||||
// once connected, for list of service characteristics and check for read / write for each
|
||||
// loog all of this to eros
|
||||
|
||||
/*func pathways(target bluetooth.ScanResult) {
|
||||
func pathways(target bluetooth.ScanResult) {
|
||||
|
||||
println("Discovery")
|
||||
|
||||
@ -17,4 +17,4 @@ package blueStuff
|
||||
|
||||
//srvcs, err := projVars.ScanAdapter.
|
||||
|
||||
}*/
|
||||
}
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"protomolecule/src/dust"
|
||||
"protomolecule/src/eros"
|
||||
projVars "protomolecule/src/vars"
|
||||
"strconv"
|
||||
//"strconv"
|
||||
|
||||
"github.com/rs/zerolog"
|
||||
"github.com/rs/zerolog/log"
|
||||
@ -149,10 +149,11 @@ func (s *Scan) Start() error {
|
||||
|
||||
//if char.
|
||||
|
||||
println(char.UUID().String())
|
||||
ReadPos, _ := char.Read(buf)
|
||||
println("data bytes", strconv.Itoa(ReadPos))
|
||||
println("vale = ", string(buf[:ReadPos]))
|
||||
|
||||
sublog.Info().Str("UUID", char.UUID().String()).
|
||||
Int("Bytes", ReadPos).Str("Value", string(buf[:ReadPos])).Msg("NEW_CHARACTERISTIC")
|
||||
|
||||
//println("Rawvalue = ", buf[i])
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user