Check bluetooth status in keil

When the Bluetooth connection between hexiwear and the smartphone is disconnected,
hexi wants to display Bluetooth disconnected on the screen.

While looking at the kw40z library, I saw the Bluetooth advertisement,
and I was wondering if I could open the screen when the Bluetooth connection is disconnected here.
Is it possible?