Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element not found (0x80070490) #7

Open
torgashov opened this issue Aug 25, 2022 · 0 comments
Open

Element not found (0x80070490) #7

torgashov opened this issue Aug 25, 2022 · 0 comments

Comments

@torgashov
Copy link

torgashov commented Aug 25, 2022

Hellow! I have device muse 2.
I execute MuseModule.Scan() to know address of my muse device.
Run code:
var client = new MuseClient();
var ok = await client.Connect(MyMuse.Address);
if (ok)
{
await client.Subscribe(
Channel.EEG_AF7,
Channel.EEG_AF8,
Channel.EEG_TP10,
Channel.EEG_TP9,
Channel.EEG_AUX);

            client.NotifyEeg += Client_NotifyEeg;
            await client.Resume();
        }
        else
       {
            Console.WriteLine("Not connected");
        }

And got error:
System.Exception
HResult=0x80070490
Message=Element not found. (Exception from HRESULT: 0x80070490)
Source=Windows.Devices
StackTrace:
at Windows.Devices.Bluetooth.BluetoothLEDevice.GetGattService(Guid serviceUuid)
at Harthoorn.MuseClient.MuseClient.d__41.MoveNext() in C:\Users\Administrator_2\Downloads\Muse.Net-master\Muse.Net\Muse\MuseClient.cs:line 58
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at ConsoleApp.Program.d__2.MoveNext() in C:\Users\Administrator_2\Downloads\Muse.Net-master\Muse.Console\Program.cs:line 25
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.GetResult()
at ConsoleApp.Program.Main(String[] args) in C:\Users\Administrator_2\Downloads\Muse.Net-master\Muse.Console\Program.cs:line 45

What is wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant