Connecting two MCUs by using Bluetooth

Thanks for your advices.
I used RX TX connection what the user msfujino shared in this topic. And it works perfectly. I dont know how this works with those codes but not with Serial and Serial1 connections.