You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a device that receives data from another devices once every 3 minutes. it sends packets at 80ms intervals for one second.
to avoid receiving all the packets advertised over that 1 second, what's the best way to setup nimble?
i tried using duplicates = false setAdvertisedDeviceCallbacks(callback, false) and setting a low value of setMaxResults
setMaxResults(0) and duplicates = true and then setting a flag within onResult e.g. isChecking to ensure we only get 1 packet until we've processed it then reset using esp_timer_create after N seconds.
the former caused advertisements to be lost (sometimes by 15 minutes) and the later caused what I think is a memory leak (although haven't had time to look into this with certainty)
any expertise on this would be appreciated
The text was updated successfully, but these errors were encountered:
I have a device that receives data from another devices once every 3 minutes. it sends packets at 80ms intervals for one second.
to avoid receiving all the packets advertised over that 1 second, what's the best way to setup nimble?
setAdvertisedDeviceCallbacks(callback, false)
and setting a low value of setMaxResultsonResult
e.g.isChecking
to ensure we only get 1 packet until we've processed it then reset usingesp_timer_create
after N seconds.the former caused advertisements to be lost (sometimes by 15 minutes) and the later caused what I think is a memory leak (although haven't had time to look into this with certainty)
any expertise on this would be appreciated
The text was updated successfully, but these errors were encountered: