sphero-inc / Sphero-Win-SDK

🚫 DEPRECATED: Sphero SDK for Win 8.1+ using RFCOMM
36 stars 27 forks source link

ConnectedRobot event never fires #1

Closed benheymink closed 11 years ago

benheymink commented 11 years ago

I'm attempting to write a sample using the instructions provided. For some reason, however, the ConnectedRobot event never fires. The DiscoveredRobotEvent fires successfully, and can Identify my Sphero, but after that, nothing.

I've copied and pasted the setup code from the provided sample, so everything should be working! Is a step missing from the instructions?

vves commented 11 years ago

We have noticed some differences in the way the different pre-release versions of Windows handle bluetooth connections. So in order to help you sort this out can you answer the following questions? Any extra info will help. Thx.

What hardware?

What pre-release build number of Windows 8.1?

Have you paired with more than one Sphero?

michaelorbotix commented 11 years ago

There are a few reasons the robot won't connect. The most common one being you did not put the proper permission in the manifest. This seems to be missing from the ReadMe.

<wb:DeviceCapability Name="bluetooth.rfcomm">
  <wb:Device Id="any">
    <wb:Function Type="serviceId:00001101-0000-1000-8000-00805F9B34FB" />
  </wb:Device>
</wb:DeviceCapability>
benheymink commented 11 years ago

Thanks, it was missing the Bluetooth capability from the manifest. Also needed was the namespace declaration: xmlns:wb="http://schemas.microsoft.com/appx/2013/manifest"

Thanks Michael and VVes! Looking forward to tinkering! ;-)