twins
Version:
Digital twin PoC demo
27 lines (22 loc) • 723 B
JavaScript
// -*- mode: js; js-indent-level:2; -*-
// SPDX-License-Identifier: MPL-2.0
/**
*
* Copyright 2019-present Samsung Electronics France SAS, and other contributors
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/#
*/
var console = require('console');
// Disable logs here by editing to '!console.log'
var log = console.log || function () {};
var verbose = console.log || function () {};
verbose(process);
verbose(process.iotjs);
var app = require('twins');
app.start();
var loops = 0;
setInterval(function() {
console.log('status: ' + loops++);
}, 60 * 1000);