programming that can connect accelerometer to nRF Connect on iphone

if(BLESerial.operator bool()) {

That's an interesting expression - what does it do?

Please remember to use code tags when posting code.