Revision history [back]

click to hide/show revision 1
initial version

How can I get the signal?

I've made some device's properties with control panel interfaces. And I can set or get the properties with some specific object path as follow codes.

ProxyBusObject proxy =  bus.getProxyBusObject(busName, objectPath, sessionId, new Class<?>[] { Properties.class });

Properties prop = proxy.getInterface(Properties.class);

prop.Set("org.alljoyn.ControlPanel.Property", "Value", value);

And I want to get the signal - property's value changed. I've tried follow codes.

//(added signal handler after connect)
bus.registerSignalHandlers(A.this);
//

//(A class)
@BusSignalHandler(iface="org.alljoyn.ControlPanel.Property", signal="ValueChanged")
public void ValueChangedHandler(Variant var) { Log.d(TAG, "ValueChanged Signal.."); }

But I coundn't get any value changed signal.. Would you please let me know how can i get the signal?

How can I get the signal?

I've made some device's properties with control panel interfaces. And I can set or get the properties with some specific object path as follow codes.

ProxyBusObject proxy =  bus.getProxyBusObject(busName, objectPath, sessionId, new Class<?>[] { Properties.class });

Properties prop = proxy.getInterface(Properties.class);

prop.Set("org.alljoyn.ControlPanel.Property", "Value", value);

And I want to get the signal - property's value changed. I've tried follow codes.

//(added signal handler after connect)
bus.registerSignalHandlers(A.this);
//

//(A class)
@BusSignalHandler(iface="org.alljoyn.ControlPanel.Property", signal="ValueChanged")
public void ValueChangedHandler(Variant var) { Log.d(TAG, "ValueChanged Signal.."); }

But I coundn't get any value changed signal.. Would you please let me know how can i get the signal?