Revision history [back]

click to hide/show revision 1
initial version

How to get description of service's event & action?

Hi All,

Based on this article, I can get the list of event & action from ACServerSample. https://ask.allseenalliance.org/question/4096/get-a-list-of-service-interfaces-available-methods/

It looks like this.

    /MyDeviceEventsAndActions
            org.alljoyn.ACServerSample.Actions
 <interface name="org.alljoyn.ACServerSample.Actions">
  <method name="SetModeToAuto">
  </method>
  <method name="SetModeToCool">
  </method>
  <method name="SetModeToFan">
  </method>
  <method name="SetModeToHeat">
  </method>
  <method name="SetModeToOff">
  </method>
  <property name="Version" type="q" access="read"/>
</interface>
            org.alljoyn.ACServerSample.Events
 <interface name="org.alljoyn.ACServerSample.Events">
  <signal name="ModeSetToOff">
  </signal>
  <signal name="ModeSetToOn">
  </signal>
  <signal name="Temperature60FReached">
  </signal>
  <signal name="Temperature80FReached">
  </signal>
  <property name="Version" type="q" access="read"/>
</interface>
            org.allseen.Introspectable

However, I also want to get the readable description. How could I do this? For example, for <method name="SetModeToOff">, I should get <description>Set AC mode to Off</description>.

Thanks, Daniel

How to get description of service's event & action?

Hi All,

Based on this article, I can get the list of event & action from ACServerSample. https://ask.allseenalliance.org/question/4096/get-a-list-of-service-interfaces-available-methods/

It looks like this.

    /MyDeviceEventsAndActions
            org.alljoyn.ACServerSample.Actions
 <interface name="org.alljoyn.ACServerSample.Actions">
  <method name="SetModeToAuto">
  </method>
  <method name="SetModeToCool">
  </method>
  <method name="SetModeToFan">
  </method>
  <method name="SetModeToHeat">
  </method>
  <method name="SetModeToOff">
  </method>
  <property name="Version" type="q" access="read"/>
</interface>
            org.alljoyn.ACServerSample.Events
 <interface name="org.alljoyn.ACServerSample.Events">
  <signal name="ModeSetToOff">
  </signal>
  <signal name="ModeSetToOn">
  </signal>
  <signal name="Temperature60FReached">
  </signal>
  <signal name="Temperature80FReached">
  </signal>
  <property name="Version" type="q" access="read"/>
</interface>
            org.allseen.Introspectable

However, I also want to get the readable description. How could I do this? this in C++? For example, for <method name="SetModeToOff">, I should get <description>Set AC mode to Off</description>.

Thanks, Daniel

How to get description of service's event & action?

Hi All,

Based on this article, I can get the list of event & action from ACServerSample. https://ask.allseenalliance.org/question/4096/get-a-list-of-service-interfaces-available-methods/

It looks like this.

    /MyDeviceEventsAndActions
            org.alljoyn.ACServerSample.Actions
  <interface name="org.alljoyn.ACServerSample.Actions">
   <method name="SetModeToAuto">
   </method>
   <method name="SetModeToCool">
   </method>
   <method name="SetModeToFan">
   </method>
   <method name="SetModeToHeat">
   </method>
   <method name="SetModeToOff">
   </method>
   <property name="Version" type="q" access="read"/>
 </interface>
            org.alljoyn.ACServerSample.Events
  <interface name="org.alljoyn.ACServerSample.Events">
   <signal name="ModeSetToOff">
   </signal>
   <signal name="ModeSetToOn">
   </signal>
   <signal name="Temperature60FReached">
   </signal>
   <signal name="Temperature80FReached">
   </signal>
   <property name="Version" type="q" access="read"/>
 </interface>
            org.allseen.Introspectable

However, I also want to get the readable description. How could I do this in C++? For example, for <method name="SetModeToOff">, I should get <description>Set AC mode to Off</description>.

Thanks, Daniel