const artik = require('../lib/artik-sdk');
const artik_platform = require('./artik_platform');

var adc = artik.adc(0, "adcjs-test");

var intervalFunc = setInterval(function() {
    console.log("launch request by interval");
    adc.request();
    console.log("[%s] : load", adc.get_name());
    console.log("[%s] :  get_value %d .", adc.get_name(), adc.get_value());
    adc.release();
    console.log("Release ADC module.");
}, 800);

process.on('SIGINT', function () {
    console.log("Kill adc  ");
    clearInterval(intervalFunc);
    process.kill(process.pid);
});

const artik = require('../lib/artik-sdk');

var adc = artik.adc(0, "adcjs-test");

var intervalFunc = setInterval(function() {
    console.log("launch request by interval");
    adc.request();
    console.log("[%s] : load", adc.get_name());
    console.log("[%s] :  get_value %d .", adc.get_name(), adc.get_value());
    adc.release();
    console.log("Release ADC module.");
}, 800);

process.on('SIGINT', function () {
    console.log("Kill adc  ");
    clearInterval(intervalFunc);
    process.kill(process.pid);
});

Remove undefined platform symbol