AllJoyn を使用して単純なプロジェクトを作成し、Windows 10 IoT を実行している Raspberry Pi 2 を介してガレージ ドアへのインターフェイスを公開しようとしました。
関連するイントロスペクション XML ファイルは次のとおりです。
<node xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance" xsi:noNamespaceSchemaLocation="https://allseenalliance.org/schemas/introspect.xsd">
<interface name="com.hastarin.GarageDoor">
<!--<annotation name="org.alljoyn.Bus.Secure" value="true" />-->
<description language="en">Interface for controlling a garage door.</description>
<property name="IsOpen" type="b" access="read">
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="true"/>
<description language="en">Is TRUE if the door is open.</description>
</property>
<property name="IsPartiallyOpen" type="b" access="read">
<annotation name="org.freedesktop.DBus.Property.EmitsChangedSignal" value="true"/>
<description language="en">Is TRUE if the door is only partially open for air flow.</description>
</property>
<method name="Open">
<description language="en">Opens the door if it's closed.</description>
<argument name="partialOpen" type="b" direction="in">
<description language="en">
If TRUE, the door will only be partially opened to allow air flow.
If FALSE, the door will be fully opened.
</description>
</argument>
</method>
<method name="Close">
<description language="en">Close the door if it's open.</description>
</method>
<method name="PushButton">
<description language="en">Will trigger the push button on the garage door.</description>
</method>
</interface>
</node>
残念ながら、生成されたサービス インターフェイスには Open メソッドの引数が含まれていません。
public interface IGarageDoorService
{
IAsyncOperation<GarageDoorOpenResult> OpenAsync([In] AllJoynMessageInfo info);
IAsyncOperation<GarageDoorCloseResult> CloseAsync([In] AllJoynMessageInfo info);
IAsyncOperation<GarageDoorPushButtonResult> PushButtonAsync([In] AllJoynMessageInfo info);
IAsyncOperation<GarageDoorGetIsOpenResult> GetIsOpenAsync([In] AllJoynMessageInfo info);
IAsyncOperation<GarageDoorGetIsPartiallyOpenResult> GetIsPartiallyOpenAsync([In] AllJoynMessageInfo info);
}
プロジェクトの完全なソース コードは GitHub にあります: https://github.com/hastarin/HastPiControl
私が何か間違ったことをしているのか、それともおそらくこれが AllJoyn Studio 拡張機能の制限なのか、誰か教えてもらえますか?
誰でも回避策を提案できますか?