Collect data when device not has internet

This has been discussed a few times elsewhere.

In a follow-up thread @Dmytro said last month that maybe it was time to create an API for this…

Pete.