Emotiv / cortex-example

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

improve python example #173

Closed tungntEmotiv closed 2 years ago

tungntEmotiv commented 2 years ago

There are some improvement for python examples as below:

  1. Validate clientId and clientSecret before using. Throw an exception if user set an invalid information
  2. Replace websocket.create_connection() by websocket.WebSocketApp() to help handle response message more easily
  3. Use callbacks function instead of waiting response in while loop
  4. Handle some error and warnings related to headset connection and profile to fix issues which customer raised before
  5. Remove async folder because they are lack of many APIs and cause confused.
  6. Refactor all examples
  7. Add more optional parameters for createRecord, exportRecord api

Please help to review. Thanks