Commit 85f40f1e authored by George Nash's avatar George Nash

Update spec version for Java samples

This updates the spec version value for the servers for fargo

Change-Id: I0b2e26fe03e5eab647ea9bb35f6979d41607bd74
Signed-off-by: George Nash's avatarGeorge Nash <george.nash@intel.com>
parent bab22c69
......@@ -7,7 +7,7 @@ public class MyInitHandler implements OCMainInitHandler {
public int initialize() {
System.out.println("inside MyInitHandler.initialize()");
int ret = OCMain.initPlatform("Intel");
ret |= OCMain.addDevice("/oic/d", "oic.d.light", "Lamp", "ocf.1.0.0", "ocf.res.1.0.0");
ret |= OCMain.addDevice("/oic/d", "oic.d.light", "Lamp", "ocf.2.1.0", "ocf.res.1.0.0");
Light.name = "John's Light";
Light.power = 0;
Light.state = false;
......
......@@ -8,8 +8,8 @@ public class MyInitHandler implements OCMainInitHandler {
System.out.println("inside MyInitHandler.initialize()");
int ret = OCMain.initPlatform("Refrigerator");
ret |= OCMain.addDevice("/oic/d", "oic.d.refrigerator", "My fridge", "ocf.1.0.0", "ocf.res.1.0.0");
ret |= OCMain.addDevice("/oic/d", "oic.d.thermostat", "My thermostat", "ocf.1.0.0", "ocf.res.1.0.0");
ret |= OCMain.addDevice("/oic/d", "oic.d.refrigerator", "My fridge", "ocf.2.1.0", "ocf.res.1.0.0");
ret |= OCMain.addDevice("/oic/d", "oic.d.thermostat", "My thermostat", "ocf.2.1.0", "ocf.res.1.0.0");
// Initialize fridge device values
Fridge.filter = 0;
......
......@@ -8,7 +8,7 @@ public class ObtInitHandler implements OCMainInitHandler {
public int initialize() {
System.out.println("inside ObtInitHandler.initilize()");
int ret = OCMain.initPlatform("OCF");
ret |= OCMain.addDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.0.5", "ocf.res.1.0.0,ocf.sh.1.0.0");
ret |= OCMain.addDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.1.0", "ocf.res.1.0.0,ocf.sh.1.0.0");
OCMain.deviceBindResourceType(0, "oic.d.ams");
OCMain.deviceBindResourceType(0, "oic.d.cms");
return ret;
......
......@@ -38,7 +38,7 @@ public class InitHandler implements OCMainInitHandler {
int ret = ocPlatform.platformInit("Intel");
if (ret >= 0) {
// Create the devices and add them to the platform
lightDevice = new OcDevice("/oic/d", "oic.d.light", "Lamp", "ocf.1.0.0", "ocf.res.1.0.0");
lightDevice = new OcDevice("/oic/d", "oic.d.light", "Lamp", "ocf.2.1.0", "ocf.res.1.0.0");
refrigeratorDevice = new OcDevice("/oic/d", "oic.d.refrigerator", "Refrigerator", "ocf.1.0.0", "ocf.res.1.0.0");
thermostatDevice = new OcDevice("/oic/d", "oic.d.thermostat", "Thermostat", "ocf.1.0.0", "ocf.res.1.0.0");
televisionDevice = new OcDevice("/oic/d", "oic.d.tv", "Television", "ocf.1.0.0", "ocf.res.1.0.0");
......
......@@ -23,7 +23,7 @@ public class ObtInitHandler implements OCMainInitHandler {
Log.d(TAG, "inside ObtInitHandler.initialize()");
int ret = obtPlatform.platformInit("OCF");
if (ret >= 0) {
OcDevice device = new OcDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.0.5", "ocf.res.1.0.0,ocf.sh.1.0.0");
OcDevice device = new OcDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.1.0", "ocf.res.1.0.0,ocf.sh.1.0.0");
ret |= obtPlatform.addDevice(device);
// Note: device must be added to platform before additional resource types can be added
device.bindResourceType("oic.d.ams");
......
......@@ -30,7 +30,7 @@ public class MyInitHandler implements OCMainInitHandler {
Log.d(TAG, "inside MyInitHandler.initialize()");
int ret = ocPlatform.platformInit("Intel");
if (ret >= 0) {
device = new OcDevice("/oic/d", "oic.d.light", "Lamp", "ocf.1.0.0", "ocf.res.1.0.0");
device = new OcDevice("/oic/d", "oic.d.light", "Lamp", "ocf.2.1.0", "ocf.res.1.0.0");
ret |= ocPlatform.addDevice(device);
}
......
......@@ -34,7 +34,7 @@ public class InitHandler implements OCMainInitHandler {
int ret = platform.platformInit("Intel");
if (ret >= 0) {
device = new OcDevice("/oic/d", "oic.d.media.server", "ChannelChangeServer", "ocf.1.0.0", "ocf.res.1.0.0");
device = new OcDevice("/oic/d", "oic.d.media.server", "ChannelChangeServer", "ocf.2.1.0", "ocf.res.1.0.0");
ret |= platform.addDevice(device);
}
......
......@@ -17,7 +17,7 @@ public class ObtInitHandler implements OCMainInitHandler {
int ret = obtPlatform.platformInit("OBT");
if (ret >= 0) {
OcDevice device = new OcDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.0.5", "ocf.res.1.0.0,ocf.sh.1.0.0");
OcDevice device = new OcDevice("/oic/d", "oic.d.dots", "OBT", "ocf.2.1.0", "ocf.res.1.0.0,ocf.sh.1.0.0");
ret |= obtPlatform.addDevice(device);
// Note: device must be added to platform before additional resource
// types can be added
......
......@@ -43,7 +43,7 @@ public class InitHandler implements OCMainInitHandler {
int ret = platform.platformInit("Intel");
if (ret >= 0) {
device = new OcDevice("/oic/d", "oic.d.media.server", "SimpleMediaServer", "ocf.1.0.0", "ocf.res.1.0.0");
device = new OcDevice("/oic/d", "oic.d.media.server", "SimpleMediaServer", "ocf.2.1.0", "ocf.res.1.0.0");
ret |= platform.addDevice(device);
}
......
......@@ -37,7 +37,7 @@ public class MyInitHandler implements OCMainInitHandler {
int ret = platform.platformInit("Intel");
if (ret >= 0) {
device = new OcDevice("/oic/d", "oic.d.light", "Lamp", "ocf.1.0.0", "ocf.res.1.0.0");
device = new OcDevice("/oic/d", "oic.d.light", "Lamp", "ocf.2.1.0", "ocf.res.1.0.0");
ret |= platform.addDevice(device);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment