Profilo di
William Hall
| Nome | William Hall |
|---|---|
| Indirizzo email | wiliea.espinosa65@gmail.com |
| Avatar | ![]() |
| Messaggi | 1 |
| Firma forum | |
Python enthusiast, software developer, and tech blogger. Passionate about open-source projects, Python frameworks, and web development. Always learning new Python techniques and sharing insights. Join me for discussions on coding, AI, and data science! | |
-
- 2025-11-22 11:50:43
- Re: Problema con ser.write()
- Forum >> Programmazione Python >> GUI
-
You're getting that error because ser.write()doesn't accept lists. It only accepts bytes, bytearray or encoded strings. Right now you're building a list of lists, so Python can't convert it into something the serial port can send. You need to turn your values into a single bytes message before sending, either by encoding them as text or by packing them into a binary format if you need to transmit numbers above 256.
Python enthusiast, software developer, and tech blogger. Passionate about open-source projects, Python frameworks, and web development. Always learning new Python techniques and sharing insights. Join me for discussions on coding, AI, and data science!

