I am doing this:
Code: Select all
from pythonosc import dispatcher
from pythonosc import osc_server
def eeg_handler(unused_addr, args, ch1, ch2, ch3, ch4):
print("EEG per channel: ", ch1, ch2, ch3, ch4)
if __name__ == "__main__":
dispatcher = dispatcher.Dispatcher()
dispatcher.map("/debug", print)
dispatcher.map("/Muse/eeg", eeg_handler, "EEG")
server = osc_server.ThreadingOSCUDPServer(("192.168.0.157", 5000), dispatcher)
server.serve_forever()
I would expect it to print something.
What am I missing here? And is there a guide for getting started with this?
Thanks!