I think the first issue you need to solve is the serial data stream. Do you have a second UART on your device? Software Serial should be avoided as much as possible. Unless you are developing a ultra-cheap product with very large volumes, making you millions of dollars there is no need for that. Get a device with enough UARTs.
Once you have a clean stream of data you can investigate parsing the data. There are all kinds of way to do this. You basically search for the identifier and extract the data. You can do this character by character or fill a buffer and then use some functions for searching sub strings.
When the esp board is turned on, if I using UART hardware, program not running and WiFi can not be connected to another board, I have to disconnect the jumper first from the pins and connect the jumper after connecting to WiFi, is it a way to solve it?
Can you provide some more information about your system? It is hard to give you advice without seeing what boards you have and how they are connected.
A schematic (hand drawn is OK) would be good and links to datasheets of non-Arduino devices.
OK. So, the pulse oximeter sends this serial data stream without any configuration. When you start the meter, you get the data. Am I right?
I had a look at some ESP-12F datasheet. It looks like you only have one UART.
However, if my first point is correct you can remove the connection from ESP-12F TX to Spo2 RX. Then you can connect the ESP-12F TX to your Serial Monitor. UARTs use an asynchronous protocol. That means transmit and receive are independent without a clock signal. Each side can just transmit whenever it wants. But the baudrate setting is the same for transmit and receive. Luckily, you can freely choose the setting for the Serial Monitor. So, we can match it to the baudrate required for the sensor.
Can you then create a simple sketch that will forward every character exactly as received and show the output of that?
void loop()
{
if ( Serial.available() )
{
char c = Serial.read();
Serial.write( c );
}
}
Can you show the output from the Spo2 module using the sketch above? Does still look as in post #1 or has the printout improved?
You only need two "half" hardware UARTs. Because you only have one UART and the direction is different for each case we can use the transmit and receive side for different functions. The receive side for the sensor and the transmit side for the Serial Monitor.