Bluno nano scanning ble on skecth loop

Hi.

I want to upload a sketch that makes periodically ble scan on loop. Basically i developped same solution using esp32, wich has a lot of documentation and libraries to achieve that. How can i execute "at+scan" inside loop?

Thank you