b'' indica byte.

Converti il dato in quello che preferisci.

Sent from my iPhone

> On 18 Feb 2017, at 14:07, <pan...@tiscali.it> <pan...@tiscali.it> wrote:
> 
> Usando la seriale di python sto cercando di acquisire  un valore di 
> temperatura
> Inviato da Arduino sul’ USB.
> Python 3.6 installato sul PC con S.O. windows10 mi legge il dato inviato da 
> Arduino con
> L’ istruzione print.Serial(Temp).
> Se per esempio Temp vale  26.00, nella Shell di python arriva b’26.00’.
> Perché non mi esce solo 26.00.
> Il file python è il seguente:
>  
> <01AA8292C55A40F89BBB063616623143.png>
>  
>  
> Risultato: nella shell
> b’26.00’
>  
> nel file Temp.text:
>  
> Temperatura =……’b26.00’
>  
>  
> Inviato da Posta per Windows 10
>  
> <01AA8292C55A40F89BBB063616623143.png>
> _______________________________________________
> Python mailing list
> Python@lists.python.it
> http://lists.python.it/mailman/listinfo/python
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a