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
I have four things to ask you. 1. What does the purpose of using missing bytes in this function from MindWavemobileRawReader.py file:
def _readBytesFromMindwaveMobile(self, amountOfBytes):
missingBytes = amountOfBytes
receivedBytes = ""
while(missingBytes > 0):
receivedBytes += self.mindwaveMobileSocket.recv(missingBytes)
missingBytes = amountOfBytes - len(receivedBytes)
return receivedBytes; 2. If i run this code i gor an error in the same above function that said:
Can't convert bytes into string
as recieced bytes are in string form 3. Is it possible to connect the headset without dongle? 4. And I'm using python 3 so the built in function that u use in many functions supposed to take string of length 1 but it recieved Bytes so it also give errors.
The text was updated successfully, but these errors were encountered:
@robintibor : I wonder whether "MindWave Mobile 2" protocol is different or if it's supported too? (I don't own one)
If not, which linux-supported device would you suggest instead?
I have four things to ask you.
1. What does the purpose of using missing bytes in this function from MindWavemobileRawReader.py file:
def _readBytesFromMindwaveMobile(self, amountOfBytes):
missingBytes = amountOfBytes
receivedBytes = ""
while(missingBytes > 0):
receivedBytes += self.mindwaveMobileSocket.recv(missingBytes)
missingBytes = amountOfBytes - len(receivedBytes)
return receivedBytes;
2. If i run this code i gor an error in the same above function that said:
Can't convert bytes into string
as recieced bytes are in string form
3. Is it possible to connect the headset without dongle?
4. And I'm using python 3 so the built in function that u use in many functions supposed to take string of length 1 but it recieved Bytes so it also give errors.
The text was updated successfully, but these errors were encountered: