Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # trimitere mesaj
- delim = '~'
- #master = 'm'
- #slave = 's'
- adresa_dest = '1'
- crc = '00'
- stare = 1
- def mesaj(control, info):
- command = delim + adresa_dest + control + info + crc + delim
- cmd_unicode=command.encode("utf-8")
- sPort.write(cmd_unicode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement