Exemplo n.º 1
0
    public void SPO2_comando()
    {
        byte[] mensaje = new byte[] { Lectura.REQ, Lectura.POX_START_MEASUREMENT };
        puerto.Write(mensaje, 0, 2);

        Debug.Log("Datos enviados para SPO2...");

        if (Lectura.confirmacion(puerto))
        {
            int ind = Lectura.leer(puerto, "IND (Packet Type): ");

            if (ind == Lectura.IND)
            {
                SPO2_lectura();
            }
        }
    }