HM-10 BLE Module

Hi everyone,
I am using two HM-10 BLE modules for a project. I have paired the two modules via AT command and both BLE modules show a solid red light when connected. However, they are not receiving or transmitting data to one another. I am simply using and Serial.write() functions to send and receive data. Anyone knows why this is not working? If it is wrong, how to do I do it correctly? Any assistance is really appreciated.

Sorry I got it working already. Thank you! It was due to one wrong if statement in the code.