"sysroot": "",
"no-snapshot": false,
"iotjs-minimal-profile": false,
- "iotjs-include-module": [],
+ "iotjs-include-module": ["adc", "dgram", "gpio", "i2c", "pwm", "spi", "uart"],
"iotjs-exclude-module": []
}
}
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;
}