PebbleSharp icon indicating copy to clipboard operation
PebbleSharp copied to clipboard

Unhandled exception

Open rlbisbe opened this issue 11 years ago • 9 comments

Using the PebbleSharp sample, trying to connect to my pebble from my Windows Phone 8.1 (Lumia 1520). I'm having the following exception:

Element not found. (Exception from HRESULT: 0x80070490)

The exception rises on the PebbleScanner:

  public async Task OpenAsync()
    {
        try
        {
            await _socket.ConnectAsync( _PeerInformation.HostName, "1" );
            _streamWatcher = new StreamWatcher( _socket.InputStream );
            _streamWatcher.DataAvailible += StreamWatcherOnDataAvailible;
        }
        catch ( Exception e )
        {
            Debug.WriteLine( e.ToString() );
        }
    }

For more information, I have a Pebble with firmware 2.6

Any idea on this?

BTW, if you need help with the project, I'd be happy to contribute ;)

rlbisbe avatar Oct 07 '14 06:10 rlbisbe

Thanks for giving my project a shot.

Just wanting to clarify some details:

  1. This error came when you were running the demo WP project correct?
  2. What is the OS version of your phone? Settings>>about>>more info to see the complete version number.

I tested it on my HTC 8X and it works just fine. My wife has a Lumina 928 that I will try later to night and see if I get anything different there.

I am working on this in my spare time (what little I get), and I would be happy to accept pull requests if you want to contribute.

Keboo avatar Oct 08 '14 20:10 Keboo

Here is the info:

  1. Exactly, here is the Correct, you can check the snapshot:

exception

  1. The OS version: 8.10.14176.243 (Windows Phone 8.1 Update 1 with the Preview program)

rlbisbe avatar Oct 08 '14 21:10 rlbisbe

Hi,

I have the same exception with my phone, please do you have a solution to fix that ? Regards,

EdwigeSeminara avatar Jan 24 '15 16:01 EdwigeSeminara

Not at this time. I have finally free'd up some time to address the issue that are preventing the library from working with the latest firmware. after those are addressed I will take another stab at getting the WP demo app working.

Keboo avatar Jan 27 '15 21:01 Keboo

I know this is an old issue but I thought I would comment here in case you come back to it. I have a fork of PebbleSharp that I'm working on specifically for running on Mono/Linux. While that part may or may not be of interest to you, I have done a lot of work to PebbleSharp.Core too to get things working with the latest firmware and bundle layout, as well as adding appmessage support. If you're interested I could clean it up and send a PR for just those bits.

brookpatten avatar Feb 16 '16 13:02 brookpatten

@brookpatten can you make your fork public? This repo looks dead ...

Novo avatar Feb 16 '16 14:02 Novo

@Novo It is public, https://github.com/brookpatten/PebbleSharp.Mono.BlueZ

brookpatten avatar Feb 16 '16 15:02 brookpatten

@brookpatten Yes I would happily accept pull requests. I will admit since my pebble watch broke I have not spent much/any time working on this. I would also be willing to give people contributor access if there is interest moving this library forward.

Keboo avatar Feb 16 '16 15:02 Keboo

Ok, I'll be happy to put that together. My fork has some changes in it that are overly invasive in the context of a PR so I'll sort through that and submit a PR to this project.

I will likely be working on it for the forseable future as I have another project that depends on it being up-to-date with the latest pebble release. If you don't have the interest in it any longer I'd be happy to maintain it.

BTW I feel your pain on the hardware, I'm on my pebble #2 and it seems to be dying as well.

brookpatten avatar Feb 16 '16 15:02 brookpatten