Skip to content

Commit

Permalink
iotjs: Alias server objects to be aligned webthing-node
Browse files Browse the repository at this point in the history
Change-Id: I3bc3bfe3a6423f0912dca3185a26b47d7417cfae
Signed-off-by: Philippe Coval <p.coval@samsung.com>
  • Loading branch information
rzr committed Nov 14, 2018
1 parent b9bc197 commit 91aefef
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions example/multiple-things.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ try {
webthing = require('webthing');
}
const Property = webthing.Property;
const MultipleThings = webthing.server.MultipleThings;
const MultipleThings = webthing.MultipleThings;
const Thing = webthing.Thing;
const Value = webthing.Value;
const WebThingServer = webthing.server.WebThingServer;
const WebThingServer = webthing.WebThingServer;

/**
* A dimmable light that logs received commands to stdout.
Expand Down
4 changes: 2 additions & 2 deletions example/platform/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ try {
} catch (err) {
webthing = require('webthing');
}
const WebThingServer = webthing.server.WebThingServer;
const SingleThing = webthing.server.SingleThing;
const WebThingServer = webthing.WebThingServer;
const SingleThing = webthing.SingleThing;

// Update with different board here if needed
let board = 'artik530';
Expand Down
4 changes: 2 additions & 2 deletions example/simplest-thing.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ try {
webthing = require('webthing');
}
const Property = webthing.Property;
const SingleThing = webthing.server.SingleThing;
const SingleThing = webthing.SingleThing;
const Thing = webthing.Thing;
const Value = webthing.Value;
const WebThingServer = webthing.server.WebThingServer;
const WebThingServer = webthing.WebThingServer;

function makeThing() {
const thing = new Thing('ActuatorExample',
Expand Down
4 changes: 2 additions & 2 deletions example/single-thing.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ try {
webthing = require('webthing');
}
const Property = webthing.Property;
const SingleThing = webthing.server.SingleThing;
const SingleThing = webthing.SingleThing;
const Thing = webthing.Thing;
const Value = webthing.Value;
const WebThingServer = webthing.server.WebThingServer;
const WebThingServer = webthing.WebThingServer;


function makeThing() {
Expand Down
4 changes: 4 additions & 0 deletions webthing.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@ module.exports = {
Value: require('./lib/value'),
server: require('./lib/server'),
};

module.exports.MultipleThings = module.exports.server.MultipleThings;
module.exports.SingleThing = module.exports.server.SingleThing;
module.exports.WebThingServer = module.exports.server.WebThingServer;

0 comments on commit 91aefef

Please sign in to comment.