You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon receiving a data message from the dashboard, I'm getting the following error:
Actual behavior
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/Hologram/CustomCloud.py", line 336, in __incoming_connection_thread
recv += result
TypeError: can only concatenate str (not "bytes") to str
Steps to reproduce the behavior
result = hologram.network.connect()
hologram.initializeReceiveSocket()
for i in range(20):
message = self.hologram.popReceivedMessage()
print(f"Data_msg received: {message}" if message else "no data_msg")
System information
Linux
hologram-python version: 0.9.0
Python 3.7
NOVA + SARA-R10M
The text was updated successfully, but these errors were encountered:
I got it to work if I modify the following in CustomCloud.py:
def __incoming_connection_thread(self, clientsocket):
clientsocket.settimeout(RECEIVE_TIMEOUT)
# Keep parsing the received data until timeout or receive no more data.
recv = ''
changed to:
def __incoming_connection_thread(self, clientsocket):
clientsocket.settimeout(RECEIVE_TIMEOUT)
# Keep parsing the received data until timeout or receive no more data.
recv = b''
Describe the problem
Upon receiving a data message from the dashboard, I'm getting the following error:
Actual behavior
Steps to reproduce the behavior
System information
The text was updated successfully, but these errors were encountered: