Issues With hm-10 Bluetooth Module Inquiry Scan Output

I'm using a hm-10 Bluetooth module with my Arduino uno, and i'm simply trying to scan for surrounding Bluetooth devices until the end of life(Both master and slave mode).

Ideally, I want to scan and output all the ID's within range of the device.

Any help here? I have tried a fair number of solutions but nothing seems to work.