i have a problem with python code

hai everyone,
i am using arduino board with a bluetooth module to receive heart rate and temperature sensor data on a mobile pnone using python,
but i a ablie to connect to the module but not receive any data on the phone,
here is my arduino code,
#include “Wire.h”
#include “hrmi_funcs.h”
#include <Firmata.h>

#define HRMI_HOST_BAUDRATE 115200
#define HRMI_I2C_ADDR 0
#define HRMI_HR_ALG 1
#define MAX_IN_BUFFSIZE 16
char serInStr[MAX_IN_BUFFSIZE];
int numEntries = 0;
int numRspBytes;
int sensorPin=0;
int reading;
float voltage,tempc;
byte i2cRspArray[34];
byte hrmi_addr = HRMI_I2C_ADDR;
byte hrmi_alg = HRMI_HR_ALG;

void setup()
{
hrmi_open();
Serial.begin(HRMI_HOST_BAUDRATE);
}

void loop()
{
{
{
Serial.print(“HEART RATE AND TEMPERATURE”);
Serial.println(" “);
}
hrmiCmdArg(hrmi_addr, ‘G’, (byte) numEntries);
numRspBytes = numEntries+2;
if (hrmiGetData(hrmi_addr, numRspBytes, i2cRspArray) != -1)
{
Serial.print(i2cRspArray[2],DEC);
Serial.print(“beats”);
Serial.print(” ");
}
if (++numEntries >1)
{
numEntries = 0;
}
reading=analogRead(sensorPin);
voltage=reading*5.0/1024;
tempc=(voltage-0.5)*100;
Serial.print(tempc);
Serial.println(“c”);
delay(1000);
}
}
python code:
import e32, appuifw
import socket
app_lock = e32.Ao_lock()
def bt_connect():
global sock
arduino_addr=‘00:06:66:04:a4:e6’
sock=socket.socket(socket.AF_BT,socket.SOCK_STREAM)
target=(arduino_addr,1)
sock.connect(target)
def bt_receive_data():
global sock
buffer =
buffer = sock.recv(5)
return buffer
def quit():
global loop
app_lock.signal()
appuifw.app.exit_key_handler = quit

appuifw.app.screen = ‘normal’

canvas = appuifw.Canvas()
appuifw.app.body = canvas

canvas.rectangle((10,10,230,310), fill=0xffffff)
canvas.text((65,90), u"PROJECT WORK",0x9f5f9f, font=(u"arial",20, appuifw.STYLE_BOLD))
canvas.text((30,110), u"PATIENT MONITORING USING", 0xff0000, font=(u"arial",15,appuifw.STYLE_BOLD))
canvas.text((60,130), u"A HANDHELD DEVICE", 0xff0000, font=(u"arial",15,appuifw.STYLE_BOLD))
canvas.text((50,150), u"HEART RATE", 0x4f4f2f, font=(u"arial",15,appuifw.STYLE_BOLD))
canvas.text((50,170), u"BODY TEMPERATURE", 0x4f4f2f, font=(u"arial",15,appuifw.STYLE_BOLD))

app_lock.wait()

please some one help me with the python s60 code :’( :’( :’(

some body help please :'( :-* :'(

This is not a Python forum. It’s an Arduino forum. The Arduino side of things seems to be working for you. Or so you said. You can confirm that it is by connecting the Arduino to the PC, starting the IDE, and opening the Serial Monitor. All the serial data sent will appear in the monitor. If that looks correct, the Arduino side of things is working.

If not, post what you see, and we’ll help you get the Arduino part working.

Maybe try to find a Python forum for the Python code. One thing I did note, though, is that you are writing way more than 5 bytes, but you seem to be interested only in reading 5 bytes. Seems strange to me.