improving debug options for advertisement payload
This commit is contained in:
parent
f3348ca990
commit
ad193342fb
@ -42,17 +42,28 @@ func Scanners() {
|
||||
//bluetooth.ServiceUUIDGenericAttribute
|
||||
|
||||
if lname == projVars.ScanList[device.Address.String()] {
|
||||
log.Debug().Str("lname", lname).Str("device_address", projVars.ScanList[device.Address.String()]).Msg("Skipping existing device")
|
||||
//log.Debug().Str("lname", lname).Str("device_address", projVars.ScanList[device.Address.String()]).Msg("Skipping existing device")
|
||||
return
|
||||
}
|
||||
|
||||
log.Info().Str("address", device.Address.String()).
|
||||
Str("LocalName", lname).
|
||||
Int16("RSSI", rssi).
|
||||
Bytes("AdvertisementPayload", adbytes).
|
||||
Bool("Service UUID", srvcPld).
|
||||
Msg("new_device")
|
||||
|
||||
var nilcheck bool
|
||||
|
||||
if adbytes == nil {
|
||||
nilcheck = true
|
||||
} else {
|
||||
nilcheck = false
|
||||
}
|
||||
|
||||
log.Debug().Bytes("AdvertisementPayload_Bytes", adbytes).
|
||||
Int("AdvertisementPayload_Length", len(adbytes)).
|
||||
Bool("AdvertisementPayload_nil_check", nilcheck).Msg("AD_PAYLOAD")
|
||||
|
||||
//println(srvcPld)
|
||||
|
||||
//places captured devices into the eros DB
|
||||
|
Loading…
Reference in New Issue
Block a user