Emotiv / cortex-example

Example with Cortex V2/V3 API
https://emotiv.com
MIT License
200 stars 115 forks source link

Missing warning event telling about availability of new headsets #197

Closed landret closed 1 year ago

landret commented 1 year ago

Hi, I am missing a warning event telling when a new headset is available (and ready to be connected). At the moment, I have to send "queryHeadsets" every seconds to update the list of available headsets.

nguoithichkhampha commented 1 year ago

yes, @landret . You need to call "queryHeadsets" to get available headset. in a room when there are many headsets. the event headset is available or not available may happens frequently. sending this kind of event to client app is not useful. I think it's easier to client app call "queryHeadsets" when it want to connect a headset .

landret commented 1 year ago

@nguoithichkhampha It means a user action is required in the dev app to refresh the list with "queryHeadsets" (for instance by pressing a Refresh button). The warning event would remove this requirement. I will try to do without and see. Thanks

nguoithichkhampha commented 1 year ago

@landret , your app can call "queryHeadsets" in background when the UI show screen to connect headset. We don't need user click a refresh button.