This script takes a while because it iterates through every device in every network to pull clients over a period of 86400 seconds.
I was motivated by this question, so I have updated the script with a few additions. I've added a timespan and network setting so you can focus on a particular network and limit the search range.
I also extended the reports with a Details version, that makes an API call for every client to get its SSID and other info. This will likely break on a large network, but I built it for another use case.
Replace your existing code file with this one
Code.gs
Delete the settings tab or rename it so you have a copy
Refresh the sheet to load the new version.
It will generate a new settings sheet, which you must update.
Its a work in progress, so still working on the UI, etc. Happy to hear any feedback.