Skip to content

Cannot connect to NeuroSky headset #19

@AmirFarhan

Description

@AmirFarhan

Hi, when I ran the code:

from NeuroPy import NeuroPy
from time import sleep
neuropy = NeuroPy()

def attention_callback(attention_value):
    """this function will be called everytime NeuroPy has a new value for attention"""
    print ("Value of attention is: ", attention_value)
    return None

neuropy.setCallBack(\"attention\", attention_callback)
neuropy.start()

try:
    while True:
        sleep(0.2)
finally:
    neuropy.stop()

I'm getting this error:

[Errno 2] could not open port /dev/rfcomm0: [Errno 2] No such file or directory: '/dev/rfcomm0'

Does anyone know why? I'm using a Mac and my NeuroSky headset is connected via bluetooth.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions