Hi!
I’m using an udp_sink block to send the power values (float) to an
common udp socket writing with python
data, addr = sock.recvfrom(2048)
but the outup was:
��������ٶ��e�¹�¢���\d�5�S���8�®Z��xS�����A����T�
I found “data = sock.recv(1).decode(‘utf-8’)” function, but the output
was:
received message:
Traceback (most recent call last):
File “udp_connection.py”, line 12, in
data = sock.recv(1).decode(‘utf-8’)
File “/usr/lib/python2.7/encodings/utf_8.py”, line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: ‘utf8’ codec can’t decode byte 0xf9 in position 0:
invalid start byte
I’m try changing “utf-8” for “utf8” and the result is the same. Anyone
knows how can I decode the output?
Thanks.
Adriana