Returns the code read. Note that this function should be
def get_code():
Returns the code read. Note that this function should be called only
when there are data received (you can use notify_read() to be notified when
data was received), or it will block in loop waiting the data.