Not able to connect
Using the flint 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?
You may consider taking a look at the updated project I have been working on and try running the demo WP project: https://github.com/Keboo/PebbleSharp (hopefully soon I will get it released as a nuget). I suspect you likely need to edit your manifest to add the required capability (I had tons of weird misleading exceptions that were raised). You cannot do this through the UI, you need to open the manifest file as XML or in any text editor. You can look at the demo application if the aforementioned repository to see the rfcom capability that needs to be added.
Thanks a ton for the response! Unfortunately it gives the same exception of this project :(