Activate relay using Bluetooth LE and an Android/Iphone

Job ID: 32975072

Budget: $250 – $750 USD

I need to be able to activate a relay—ON or OFF—using a smartphone.
How it works:
A brand-new receiver board(relay board) will broadcast a power up a generic name like RELXXX.
The phone, when you start the application, will look for a Bluetooth device named RELXXX, and pair with it.
After pairing, on the phone will be a screen to select the name of the receiver board like here:
Old name RELXXX New Name R12345. It is just an example, but can be any combination of number and letters with a length of 6 characters.
After you press confirm, The name of the receiver board will be changed to R12345.
On the next screen, you have a field to enter a passcode and repeat the passcode.
The passcode is just 7 numbers, like for example: 3547727
If after retyping the passcode, the fields match, you have a button to press with the “CONFIRM” label.
When you pres confirm, the passcode is sent to the paired receiver board, like R12345.
The receiver board will store the passcode value.
Normal operation:
At the start of the phone application, the phone will look and pair with the receiver board in the memory.
Then a screen will ask you to enter the passcode.
Once you press enter, the passcode is sent to the receiver board.
If the passcode match with the one stored on EEPROM of the processor, the relay will be turned ON and a feedback signal will be sent to the phone. The phone screen will show ON or FAILED if the passcode is wrong.
If “Failed”, displayed will show another 2 buttons with labels “TRY AGAIN” and “QUIT”.
For receiver board, I suggest using ESP32 with Bluetooth BLE.
At power OFF on the receiver board, the relay will turn OFF.
At next power UP, The receiver board will check if the name is other than RELXXX.
If it is a different name, will look and pair with the phone.
On the receiver board IO32 is the feedback, the relay is closed.