Modify IoT.js for kindly test
authorHosung Kim <hs852.kim@samsung.com>
Mon, 18 Sep 2017 13:09:54 +0000 (22:09 +0900)
committerHosung Kim <hs852.kim@samsung.com>
Mon, 18 Sep 2017 13:28:01 +0000 (22:28 +0900)
 -result print in debug mode
 -include all module

external/iotjs/build.config
external/iotjs/src/platform/tizenrt/iotjs_main.c

index f2857fd..eae4c07 100644 (file)
@@ -27,7 +27,7 @@
     "sysroot": "",
     "no-snapshot": false,
     "iotjs-minimal-profile": false,
-    "iotjs-include-module": [],
+    "iotjs-include-module": ["adc", "dgram", "gpio", "i2c", "pwm", "spi", "uart"],
     "iotjs-exclude-module": []
   }
 }
index 57edd53..5e89003 100644 (file)
  pthread_addr_t iotjs_thread(void *thread_arg) {
    struct iotjs_thread_arg *arg = thread_arg;
 
+#ifdef CONFIG_DEBUG_VERBOSE
+   int ret = iotjs_entry(arg->argc, arg->argv);
+   printf("IoT.js Result: %d\n", ret);
+#else
    iotjs_entry(arg->argc, arg->argv);
+#endif
    tuv_cleanup();
 
    sleep(1);
  static int iotjs(int argc, char *argv[]) {
    int ret = 0;
    ret = iotjs_entry(argc, argv);
+#ifdef CONFIG_DEBUG_VERBOSE
+   printf("IoT.js Result: %d\n", ret);
+#endif
    tuv_cleanup();
    return ret;
  }