Hi,

I have a wall switch behind a bridge which exposes it as an OIC device, on the 
other side I have a Smart AC Plug also behind a bridge to OIC. From the OIC 
protocol this looks like two OIC compatible derives. Both devices do not have a 
web interface or something like this just some buttons, but I have a full Linux 
system running on the bridge.

Now I want to make the wall switch switch the AC plug when it is pressed and 
configure it with some external device like a smart phone application. What is 
the intended why this should work with IoTivity? There should not be a big 
difference between having a device behind a bridge or a native OIC device.

One Idea I have is to add a string attribute to the OIC representation of the 
wall switch, where you can write an URL of a different device to and then it 
sends a CoAP message to this device when it is pressed. I could also implement 
this the other way around and write an URL into the AC plug telling it where it 
should subscribe to. This still would have problems when you want to switch 
more than one AC plug with one switch. One other idea I had is to create an 
extra application which subscribes to the switch and then send messages to the 
AC plug and is configurable by some external application.

How should this be done in a OIC standard compatible way and is there already 
some code in IoTivity available I can use?

Hauke Mehrtens
Lantiq Beteiligungs-GmbH & Co.KG

office:      Lilienthalstra?e 15, 85579 Neubiberg Germany
e-mail:     hauke.mehrtens at lantiq.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150917/90acfdad/attachment.html>

Reply via email to