Can a string attached to a dictionary key and sent through serial port.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • steve472
    New Member
    • Jun 2013
    • 2

    Can a string attached to a dictionary key and sent through serial port.

    my.dict = {
    'ns': "next station is"
    }
    I wrote a code for serial communication, and the code is working. If i send the key 'ns' through serial port to other pc,the value "next station is" printing on the screen.
    My dought is, can i send a string with the key.
    ex: 'ns' abcd.
    if i send 'ns' abcd through serial port, on the other pc it has to print as next station is abcd.
Working...