0

I have to obtain the data from the muse headset (2016 version) for online analysis, the python server code that I am using gives me total gibberish, there are no values for me to do analysis on (the output that I get is like when we open a DLL file through a text editor).

code

import socket

localIP     = "192.168.1.6"

localPort   = 5005

bufferSize  = 1024


UDPServerSocket = socket.socket(family=socket.AF_INET, type=socket.SOCK_DGRAM)
UDPServerSocket.bind((localIP, localPort))

 

print("UDP server up and listening")

while(True):

    bytesAddressPair = UDPServerSocket.recvfrom(bufferSize)

    message = bytesAddressPair[0]

    address = bytesAddressPair[1]

    clientMsg = "Message from Client:{}".format(message)
    clientIP  = "Client IP Address:{}".format(address)
    
    print(clientMsg)

The values that I should obtain are numerical values.

Community
  • 1
  • 1

0 Answers0