Commit e74e64fe authored by Eric Stutzenberger's avatar Eric Stutzenberger

Add external function to create new advertisements for testing

parent 6e9d9a7b
......@@ -23,6 +23,10 @@ const (
evtTypScanRsp = 0x04 // Scan Response (SCAN_RSP).
)
func NewAdvertisement(e evt.LEAdvertisingReport, i int) *Advertisement {
return newAdvertisement(e, i)
}
func newAdvertisement(e evt.LEAdvertisingReport, i int) *Advertisement {
return &Advertisement{e: e, i: i}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment