Error 507 Unable to connect. Is the device turned on?

Hello, I’m working on a project and i keep receiving error 507 when trying to connect my hc 05 to my app.
In the bluetooth terminal app I’m receiving the data just fine.