<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>&gt; <BR>&gt; NOTA: le variabili dovrebbero iniziare con una lettera minuscola.<BR>&gt; <BR>
E' una convenzione o é obbligatorio ? Perché sto studiando il python sul testo "pensare Informatico" ma non ho trovato riferimenti alle maiuscole<BR>&gt; <BR>&gt; Ma non stavi parlando di socket? Come funziona il collegamento via seriale?<BR>&gt; <BR>
<BR>Il socket é fatto via bluetooth sul cellulare<BR>
&nbsp;<BR>
#Avvio del server RFCOMM<BR>def StartServer():<BR>&nbsp;&nbsp;&nbsp; global conn<BR>&nbsp;&nbsp;&nbsp; server = socket.socket(socket.AF_BT, socket.SOCK_STREAM)<BR>&nbsp;&nbsp;&nbsp; channel = socket.bt_rfcomm_get_available_server_channel(server)<BR>&nbsp;&nbsp;&nbsp; server.bind(("", channel))<BR>&nbsp;&nbsp;&nbsp; server.listen(1)<BR>&nbsp;&nbsp;&nbsp; socket.bt_advertise_service(u"JesterPlugIn", server, True, socket.RFCOMM)<BR>&nbsp;&nbsp;&nbsp; socket.set_security(server, socket.AUTH | socket.AUTHOR)<BR>&nbsp;&nbsp;&nbsp; print "- Waiting for clients..."<BR>&nbsp;&nbsp;&nbsp; conn, client_addr = server.accept()<BR>&nbsp;&nbsp;&nbsp; return conn<BR>&nbsp;&nbsp;&nbsp; print "- Jester connected with phone"<BR>
&nbsp;<BR>
Esite un modo per aggirare il problema di ReadLine ? Ho provatao anche con l'istruzione read ma nessun riultato :( Lo script sul telefono sul telefono comunica con un client fatto in vb6 su Windows ed in RealBasic su Mac.<BR><br /><hr />Windows Live Spaces <a href='http://pushthebutton2006.spaces.live.com/' target='_new'>Push the Button! Crea il tuo blog e condividi le tue esperienze col mondo!</a></body>
</html>