Controlling esp2886 via bluetooth... help!
I wanted to comment but I don't have the rep so I'll have to leave an answer instead.
It would probably be easiest to begin with talking to the module via a terminal and sending it AT commands. Then you can type commands freely and see the responses immediately, without having to write code to send and receive the messages.
You'll need an FTDI cable which you plug into your PC, this will appear as a COM port which you can select in a terminal program such as termite or tera term.
Looking at the pinout of that module, you'll need an FTDI cable with separate connectors like this, as the pinout does not match the standard FTDI pinout. Connect Vcc, Tx, Rx and Gnd.
Start by powering up the module and watching for a boot message. If it appears scrambled, your baud rate may be wrong.
Get the datasheet and try typing commands like AT+ADDR?
See what you get back.
It looks like quite an awkward module to learn on, with not great documentation. You may be better getting something like this which you can plug a USB cable into and also has great documentation for the hardware and the API.
Also did you mean ESP8266?