Hello Accessory - .NET

Nov 24, 2016

HelloAccessory_.NET.zip
(838KB)

Hello Accessory sample application displays simple text interactions between the Host device and the Gear device using Accessory SDK. This sample application is a companion type and is provided in two types.

Provider (Android) and Consumer (Gear)

Figure 1 Hello Accessory - Provider (Android) and Consumer (Gear)

This sample application has two parts:

  • HelloAccessoryProvider

    • Works in Host device, but has no UI.

    • Accepts a receiving service connection request from the Gear device.

    • Replies to a receiving command from Gear device with current time stamp.

  • HelloAccessoryConsumer

    • Works in Gear device and has UI.

    • Initiates service connection request and send command to Host device.

    • Shows a received response to user.

Provider (Gear) and Consumer (Android)

Figure 2 Hello Accessory - Provider (Gear) and Consumer (Android)

This sample application has two parts:

  • HelloAccessoryProvider

    • Works in Gear device.

    • Accepts a receiving service connection request from Host device.

    • Replies to a receiving command from Host device with current time stamp.

  • HelloAccessoryConsumer

    • Works in Gear device and has UI.

    • Initiates service connection request and sends command to Gear device.

    • Shows a received response to user.