Hacker News new | ask | show | jobs
by kwhitefoot 863 days ago
How much data can a toothbrush collect? Surely just a few hundred bytes per brushing session. The ESP32 has 160 kB of usable RAM out of the 520 kB total capacity. Surely enough for weeks of data even if the data structures are badly designed.
1 comments

The problem is you can't reliably collect it over bluetooth. I doubt iOS allows apps to just run always active background tasks to fetch data over bluetooth while the app is not open.

The user expects the data on the app to always be in sync. If they check it outside of bluetooth range and see days of data is missing, it'll look broken.

It'll look however the UI designer made it look.

The right answer here is to show them a "last synced" timestamp and a sync button.

> The problem is you can't reliably collect it over bluetooth.

Really? Why not?

Because apps aren't allowed to be persistently running in the background. So you'd have to get the user to actively open the app while using the toothbrush which is annoying. If you let it connect to wifi, it will just work always without any manual user effort.
They are allowed to run at intervals. Just make the interval short and control it by the GPS location so that it doesn't ping the brush when you aren't at home.