UNPKG

twins

Version:

Digital twin PoC demo

29 lines (24 loc) 767 B
// -*- 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); verbose(process.iotjs.board); var app = require('twins'); verbose(app); app.start(); var loops = 0; setInterval(function() { console.log('status: ' + loops++); }, 60 * 1000);