Giter Site home page Giter Site logo

microflo-example-arduino's Introduction

MicroFlo: Live dataflow programming for microcontrollers

Build Status

Unlike most other dataflow runtimes for constrained devices, MicroFlo run standalone on the microcontroller, can be introspected and reconfigured at runtime, and has built-in support for automated testing.

One can program with MicroFlo either:

  • Visually, using Flowhub
  • Textually, using the declarative .fbp DSL or .json definition
  • Programatically, by embedding it and building a graph using the C++ API

MicroFlo is very portable, written in C++03 without exceptions and stdlib. It comes with support for multiple platforms,including Arduino and Embedded Linux. It has been used on many different devices, from Atmel AVR8 to ARM Cortex M0/M1/M3/M4 devices (LPC mbed, TI Tiva/Stellaris), ESP8266 and Raspberry PI.

MicroFlo is designed to integrate with other data-driven programming tools, including msgflo for easy building of distributed systems (IoT).

Using

For visual programming your Arduino, follow the microflo-example-arduino.

Support

Flowhub logo

MicroFlo is a part of Flowhub, a platform for building robust IoT systems and web services.
We offer an Integrated Development Environment and consulting services.

Status

Minimally useful.

  • Works fine for simple programs
  • Components exists for standard I/O on Arduino devices
  • Live programming supported for most changes
  • Basic support for automated testing

MicroFlo in the wild:

  • Jon's fridge thermostat has been running uninterrupted since September 2013.
  • The Ingress table at c-base station, Berlin uses MicroFlo to control the lights. One major upgrade/bugfix since March 2014.
  • The lights on the CNC-milled Christmas tree at Bitraf, Oslo ran for 4 weeks during Christmas 2013.

Contact

When you find issues: file bugs and/or submit pull requests!

Changelog

Past milestones

Extending

For porting MicroFlo to other microcontrollers, see how-microflo-works and target bringup.

License

MicroFlo is released under the MIT license.

Note that the platform MicroFlo runs on (like Arduino), and MicroFlo components may be under other licenses!

microflo-example-arduino's People

Contributors

jonnor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

microflo-example-arduino's Issues

Failed to build serialport module on initial install

I installed arduino IDE, node.js, and cloned the arduino example. When running npm install, I get the following error:

PS D:\microflo\microflo-example-arduino> npm install
npm WARN deprecated [email protected]: request has been deprecated, see request/request#3142
npm WARN deprecated [email protected]: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial).
npm WARN deprecated [email protected]: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.

[email protected] install D:\microflo\microflo-example-arduino\node_modules\serialport
node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [
node-pre-gyp verb cli 'C:\Program Files\nodejs\node.exe',
node-pre-gyp verb cli 'D:\microflo\microflo-example-arduino\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build'
node-pre-gyp verb cli ]
node-pre-gyp info using [email protected]
node-pre-gyp info using [email protected] | win32 | x64
node-pre-gyp verb command install []
node-pre-gyp info check checked for "D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release\serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v83-win32-x64.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v83-win32-x64.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
node-pre-gyp ERR! Tried to download(undefined): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v83-win32-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v83 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http Connection closed while downloading tarball file
node-pre-gyp verb command build [ 'rebuild' ]
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
serialport.cpp
serialport_win.cpp
win_delay_load_hook.cc
serialport.cpp
serialport_win.cpp
win_delay_load_hook.cc
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(90): error C2660: 'v8::Value::ToInt32': function does not take 0 argumen
ts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(94): error C2660: 'v8::Value::ToBoolean': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2848): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..
src\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(98): error C2660: 'v8::Value::ToString': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2810): note: see declaration of 'v8::Value::ToString' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(102): error C2660: 'v8::Value::ToNumber': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2805): note: see declaration of 'v8::Value::ToNumber' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(111): error C2660: 'v8::Value::ToString': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2810): note: see declaration of 'v8::Value::ToString' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(111): error C2512: 'v8::String::Utf8Value::Utf8Value': no appropriate de
fault constructor available [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(118): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(141): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(174): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(90): error C2660: 'v8::Value::ToInt32': function does not take 0 argumen
ts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(180): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(94): error C2660: 'v8::Value::ToBoolean': function does not take 0 argum
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(193): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2848): note: see declaration of 'v8::Value::ToBoolean' (compiling source file ..
src\serialport.cpp)
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(98): error C2660: 'v8::Value::ToString': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(200): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2810): note: see declaration of 'v8::Value::ToString' (compiling source file ..\s
rc\serialport.cpp)
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(102): error C2660: 'v8::Value::ToNumber': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(217): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2805): note: see declaration of 'v8::Value::ToNumber' (compiling source file ..\s
rc\serialport.cpp)
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(111): error C2660: 'v8::Value::ToString': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(240): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2810): note: see declaration of 'v8::Value::ToString' (compiling source file ..\s
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(252): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(111): error C2512: 'v8::String::Utf8Value::Utf8Value': no appropriate de
fault constructor available [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(118): error C2660: 'v8::Value::ToObject': function does not take 0 argum
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(259): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(141): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(339): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(174): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(369): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(180): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(403): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(193): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(178): warning C4311: 'type cast': pointer truncation from 'HANDLE' t
o 'int' [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(178): warning C4302: 'type cast': truncation from 'HANDLE' to 'int'
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(200): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(200): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(217): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(207): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(217): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(240): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(465): warning C4996: 'Nan::Callback::Call': was declared deprecatedd:\mi
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
croflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(219): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of gr
eater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(252): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(223): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(225): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(259): error C2660: 'v8::Value::ToObject': function does not take 0 argum
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(480): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(339): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(229): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(369): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(231): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(403): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(236): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(248): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(465): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(516): warning C4996: 'Nan::Callback::Call': was declared deprecatedd:\mi
croflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(363): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'in
t' [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(480): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(363): warning C4302: 'type cast': truncation from 'HANDLE' to 'int'
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(516): warning C4996: 'Nan::Callback::Call': was declared deprecatedd:\mi
croflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(178): warning C4311: 'type cast': pointer truncation from 'HANDLE' to 'in
t' [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(528): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'd:\microflo\microflo-example-arduino
node_modules\serialport\src\serialport_win.cpp(178): warning C4302: 'type cast': truncation from 'HANDLE' to 'int'

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(373): warning C4311: 'type cast': pointer truncation from 'HANDLE' t
o 'int' [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(528): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(535): error C2660: 'v8::Value::ToObject': function does not take 0 argum
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c\serialport.cpp)
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(535): error C2660: 'v8::Value::ToObject': function does not take 0 argum
ents [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(373): warning C4302: 'type cast': truncation from 'HANDLE' to 'int'
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2822): note: see declaration of 'v8::Value::ToObject' (compiling source file ..\s
rc\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(351): warning C4996: 'Nan::Callback::Call': was declared deprecated
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(200): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(573): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(207): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(361): warning C4996: 'Nan::Callback::Call': was declared deprecatedd
:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call' [D:\microflo\microflo-example-arduino\n
ode_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(573): warning C4996: 'Nan::Callback::Call': was declared deprecatedd:\mi
croflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(217): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of gr
eater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'

d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'd:\microflo\microflo-example-arduino
node_modules\serialport\src\serialport_win.cpp(219): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(585): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(223): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(369): warning C4996: 'Nan::Callback::Call': was declared deprecated
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(585): error C2660: 'v8::Value::ToInt32': function does not take 0 argume
nts [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(617): warning C4996: 'Nan::Callback::Call': was declared deprecated [D:
microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8.h(2843): note: see declaration of 'v8::Value::ToInt32' (compiling source file ..\sr
c\serialport.cpp)
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(385): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater sized:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call' [D:\microflo\microflo-e
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(225): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
xample-arduino\node_modules\serialport\build\serialport.vcxproj]
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(229): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(410): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2039: 'Handle': is not a member of 'v8' [D:\microflo\microf
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(617): warning C4996: 'Nan::Callback::Call': was declared deprecatedd:\mi
lo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
croflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(231): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of gr
eater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(424): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'd:\microflo\microflo-example-arduino
node_modules\serialport\src\serialport_win.cpp(236): warning C4312: 'type cast': conversion from 'int' to 'HANDLE' of greater size

c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8-platform.h(16): note: see declaration of 'v8'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(248): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2065: 'Handle': undeclared identifier [D:\microflo\microflo
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2039: 'Handle': is not a member of 'v8' [D:\microflo\microf
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(451): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
lo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
c:\users<username>\appdata\local\node-gyp\cache\14.6.0\include\node\v8-platform.h(16): note: see declaration of 'v8'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2065: 'Handle': undeclared identifier [D:\microflo\microflo
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2275: 'v8::Object': illegal use of this type as an expressi
-example-arduino\node_modules\serialport\build\serialport.vcxproj]
ond:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(453): warning C4312: 'type cast': conversion from 'int' to 'HANDLE
' of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): note: see declaration of 'v8::Object'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2275: 'v8::Object': illegal use of this type as an expressi
ond:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(363): warning C4311: 'type cast': pointer truncation from 'HANDLE'
to 'int' [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2065: 'target': undeclared identifier [D:\microflo\microflo
-example-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2182: 'init': illegal use of type 'void' [D:\microflo\micro
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(363): warning C4302: 'type cast': truncation from 'HANDLE' to 'int'd
flo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): note: see declaration of 'v8::Object' [D:\microflo\microflo-example
-arduino\node_modules\serialport\build\serialport.vcxproj]

d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2448: 'init': function-style initializer appears to be a fu
nction definition [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2065: 'target': undeclared identifier [D:\microflo\microflo
-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(670): warning C4312: 'type cast': conversion from 'int' to 'node::addon_
register_func' of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(373): warning C4311: 'type cast': pointer truncation from 'HANDLE' t
o 'int' [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(567): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2182: 'init': illegal use of type 'void' [D:\microflo\micro
flo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(576): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(373): warning C4302: 'type cast': truncation from 'HANDLE' to 'int'
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(653): error C2448: 'init': function-style initializer appears to be a fu
nction definition [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(351): warning C4996: 'Nan::Callback::Call': was declared deprecated
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport.cpp(670): warning C4312: 'type cast': conversion from 'int' to 'node::addon_
register_func' of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(361): warning C4996: 'Nan::Callback::Call': was declared deprecated
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(369): warning C4996: 'Nan::Callback::Call': was declared deprecated
[D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\nan\nan.h(1742): note: see declaration of 'Nan::Callback::Call'
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(385): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(410): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(424): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(451): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(453): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(567): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
d:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp(576): warning C4312: 'type cast': conversion from 'int' to 'HANDLE'
of greater size [D:\microflo\microflo-example-arduino\node_modules\serialport\build\serialport.vcxproj]
D:\microflo\microflo-example-arduino\node_modules\serialport\src\serialport_win.cpp : fatal error C1083: Cannot open compiler generated file: 'D:\microf
lo\microflo-example-arduino\node_modules\serialport\build\Release\obj\serialport\serialport_win.obj': Permission denied [D:\microflo\microflo-example-ar
duino\node_modules\serialport\build\serialport.vcxproj]
cl : Command line error D8040: error creating or communicating with child process [D:\microflo\microflo-example-arduino\node_modules\serialport\build\se
rialport.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Windows_NT 10.0.16299
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "build" "--fallback-to-build" "--module=D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release\serialport.node" "--module_name=serialport" "--module_path=D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release"
gyp ERR! cwd D:\microflo\microflo-example-arduino\node_modules\serialport
gyp ERR! node -v v14.6.0
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release' (1)
node-pre-gyp ERR! stack at ChildProcess. (D:\microflo\microflo-example-arduino\node_modules\serialport\node_modules\node-pre-gyp\lib\util\compile.js:83:29)
gypnode-pre-gyp ERR! stack at ChildProcess.emit (events.js:314:20)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1051:16)
ERR!node-pre-gyp build error
ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
gypnode-pre-gyp ERR! System Windows_NT 10.0.16299
node-pre-gyp ERR! command "C:\Program Files\nodejs\node.exe" "D:\microflo\microflo-example-arduino\node_modules\serialport\node_modules\node-pre-gyp\bin\node-pre-gyp" "install" "--fallback-to-build"
ERR!node-pre-gyp ERR! cwd D:\microflo\microflo-example-arduino\node_modules\serialport
stack Error: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe failed with exit code: 1
gyp ERR! stacknode-pre-gyp ERR! node -v at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
v14.6.0
gypnode-pre-gyp ERR! node-pre-gyp -v v0.6.32
node-pre-gyp ERR! not ok
ERR!Failed to execute 'C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js build --fallback-to-build --module=D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release\serialport.node --module_name=serialport --module_path=D:\microflo\microflo-example-arduino\node_modules\serialport\build\Release' (1)
stack at ChildProcess.emit (events.js:314:20)
npm WARN rollback Rolling back [email protected] failed (this is probably harmless): EPERM: operation not permitted, scandir 'D:\microflo\microflo-example-arduino\node_modules\serialport\node_modules\node-pre-gyp\node_modules\npmlog\node_modules'
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users<username>\AppData\Roaming\npm-cache_logs\2020-07-29T02_55_01_220Z-debug.log
PS D:\microflo\microflo-example-arduino>

Port doesn't assign properly when using --port option on Windows

I've tried a number of combinations, including using quotes around COM10, using one hyphen, using serial instead of port, etc. Never works. Always reverts to COM5.

npm start --port COM10

[email protected] start C:<my path>\microflo\microflo-example-arduino
microflo runtime --wait-connect 3 --graph graphs/blink.fbp --componentmap build/blink.component.map.json "COM10"

INFO: No runtime id set, generated one: undefined
Using serial baudrate with auto 115200
Using port: COM5
Available serial ports: ["COM5","COM7","COM3","COM4","COM6","COM10"]
Error: Opening COM5: Unknown error code 121

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] start: microflo runtime --wait-connect 3 --graph graphs/blink.fbp --componentmap build/blink.component.map.json "COM10"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:<path>\AppData\Roaming\npm-cache_logs\2020-05-01T19_19_20_285Z-debug.log

microflo runtime cannot connect to Arduino Uno

Hi,

After seen your reply @jonnor about building microflo, i tried microflo-example-arduino with your update documentation (Thanks for this)
Everythings were ok in "Setting up".
But, when i came to Programming with Flowhub, i encounter some problems.
When i want to run microflo runtime with
npm start
i obtain this

> [email protected] start /home/alexandre/Documents/microflo-example-arduino
> microflo runtime --graph graphs/blink.fbp --componentmap build/blink/componentlib-map.json

INFO: No runtime id set, generated one: afbade42-23b8-4824-8f98-08518b2421de
Using serial baudrate with auto 9600
Available serial ports:  [ '/dev/ttyACM0',
  '/dev/ttyS0',
  '/dev/ttyS1',
  '/dev/ttyS10',
  '/dev/ttyS11',
  '/dev/ttyS12',
  '/dev/ttyS13',
  '/dev/ttyS14',
  '/dev/ttyS15',
  '/dev/ttyS16',
  '/dev/ttyS17',
  '/dev/ttyS18',
  '/dev/ttyS19',
  '/dev/ttyS2',
  '/dev/ttyS20',
  '/dev/ttyS21',
  '/dev/ttyS22',
  '/dev/ttyS23',
  '/dev/ttyS24',
  '/dev/ttyS25',
  '/dev/ttyS26',
  '/dev/ttyS27',
  '/dev/ttyS28',
  '/dev/ttyS29',
  '/dev/ttyS3',
  '/dev/ttyS30',
  '/dev/ttyS31',
  '/dev/ttyS4',
  '/dev/ttyS5',
  '/dev/ttyS6',
  '/dev/ttyS7',
  '/dev/ttyS8',
  '/dev/ttyS9' ]
Using port: /dev/ttyACM0
[TimeoutError: Device did not respond within 1000ms]

npm ERR! Linux 4.10.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.7.2
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `microflo runtime --graph graphs/blink.fbp --componentmap build/blink/componentlib-map.json`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] start script 'microflo runtime --graph graphs/blink.fbp --componentmap build/blink/componentlib-map.json'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the microflo-example-arduino package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     microflo runtime --graph graphs/blink.fbp --componentmap build/blink/componentlib-map.json
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs microflo-example-arduino
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls microflo-example-arduino
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/alexandre/Documents/microflo-example-arduino/npm-debug.log

npm bugs microflo-example-arduino give me

npm ERR! Linux 4.10.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "bugs" "microflo-example-arduino"
npm ERR! node v4.7.2
npm ERR! npm  v3.5.2
npm ERR! code E404

npm ERR! 404 Registry returned 404 for GET on https://registry.npmjs.org/microflo-example-arduino
npm ERR! 404 
npm ERR! 404  'microflo-example-arduino' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/alexandre/Documents/microflo-example-arduino/npm-debug.log

The log file give

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs',
1 verbose cli   '/usr/bin/npm',
1 verbose cli   'bugs',
1 verbose cli   'microflo-example-arduino' ]
2 info using [email protected]
3 info using [email protected]
4 silly fetchPackageMetaData microflo-example-arduino
5 silly fetchNamedPackageData microflo-example-arduino
6 silly mapToRegistry name microflo-example-arduino
7 silly mapToRegistry using default registry
8 silly mapToRegistry registry https://registry.npmjs.org/
9 silly mapToRegistry uri https://registry.npmjs.org/microflo-example-arduino
10 verbose request uri https://registry.npmjs.org/microflo-example-arduino
11 verbose request no auth needed
12 info attempt registry request try #1 at 21:05:57
13 verbose request id 04434ff724a97680
14 http request GET https://registry.npmjs.org/microflo-example-arduino
15 http 404 https://registry.npmjs.org/microflo-example-arduino
16 verbose headers { 'content-type': 'application/json',
16 verbose headers   'cache-control': 'max-age=0',
16 verbose headers   'content-length': '2',
16 verbose headers   'accept-ranges': 'bytes',
16 verbose headers   date: 'Tue, 11 Jul 2017 19:05:58 GMT',
16 verbose headers   via: '1.1 varnish',
16 verbose headers   age: '0',
16 verbose headers   connection: 'keep-alive',
16 verbose headers   'x-served-by': 'cache-lcy1130-LCY',
16 verbose headers   'x-cache': 'MISS',
16 verbose headers   'x-cache-hits': '0',
16 verbose headers   'x-timer': 'S1499799958.765512,VS0,VE386',
16 verbose headers   vary: 'Accept-Encoding' }
17 silly get cb [ 404,
17 silly get   { 'content-type': 'application/json',
17 silly get     'cache-control': 'max-age=0',
17 silly get     'content-length': '2',
17 silly get     'accept-ranges': 'bytes',
17 silly get     date: 'Tue, 11 Jul 2017 19:05:58 GMT',
17 silly get     via: '1.1 varnish',
17 silly get     age: '0',
17 silly get     connection: 'keep-alive',
17 silly get     'x-served-by': 'cache-lcy1130-LCY',
17 silly get     'x-cache': 'MISS',
17 silly get     'x-cache-hits': '0',
17 silly get     'x-timer': 'S1499799958.765512,VS0,VE386',
17 silly get     vary: 'Accept-Encoding' } ]
18 silly fetchPackageMetaData Error: Registry returned 404 for GET on https://registry.npmjs.org/microflo-example-arduino
18 silly fetchPackageMetaData     at makeError (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:264:12)
18 silly fetchPackageMetaData     at CachingRegistryClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:242:14)
18 silly fetchPackageMetaData     at Request._callback (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:172:14)
18 silly fetchPackageMetaData     at Request.self.callback (/usr/share/npm/node_modules/request/request.js:198:22)
18 silly fetchPackageMetaData     at emitTwo (events.js:87:13)
18 silly fetchPackageMetaData     at Request.emit (events.js:172:7)
18 silly fetchPackageMetaData     at Request.<anonymous> (/usr/share/npm/node_modules/request/request.js:1082:10)
18 silly fetchPackageMetaData     at emitOne (events.js:82:20)
18 silly fetchPackageMetaData     at Request.emit (events.js:169:7)
18 silly fetchPackageMetaData     at IncomingMessage.<anonymous> (/usr/share/npm/node_modules/request/request.js:1009:12)
18 silly fetchPackageMetaData  error for microflo-example-arduino { [Error: Registry returned 404 for GET on https://registry.npmjs.org/microflo-example-arduino]
18 silly fetchPackageMetaData   pkgid: 'microflo-example-arduino',
18 silly fetchPackageMetaData   statusCode: 404,
18 silly fetchPackageMetaData   code: 'E404' }
19 verbose stack Error: Registry returned 404 for GET on https://registry.npmjs.org/microflo-example-arduino
19 verbose stack     at makeError (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:264:12)
19 verbose stack     at CachingRegistryClient.<anonymous> (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:242:14)
19 verbose stack     at Request._callback (/usr/share/npm/node_modules/npm-registry-client/lib/request.js:172:14)
19 verbose stack     at Request.self.callback (/usr/share/npm/node_modules/request/request.js:198:22)
19 verbose stack     at emitTwo (events.js:87:13)
19 verbose stack     at Request.emit (events.js:172:7)
19 verbose stack     at Request.<anonymous> (/usr/share/npm/node_modules/request/request.js:1082:10)
19 verbose stack     at emitOne (events.js:82:20)
19 verbose stack     at Request.emit (events.js:169:7)
19 verbose stack     at IncomingMessage.<anonymous> (/usr/share/npm/node_modules/request/request.js:1009:12)
20 verbose statusCode 404
21 verbose pkgid microflo-example-arduino
22 verbose cwd /home/alexandre/Documents/microflo-example-arduino
23 error Linux 4.10.0-21-generic
24 error argv "/usr/bin/nodejs" "/usr/bin/npm" "bugs" "microflo-example-arduino"
25 error node v4.7.2
26 error npm  v3.5.2
27 error code E404
28 error 404 Registry returned 404 for GET on https://registry.npmjs.org/microflo-example-arduino
29 error 404
30 error 404 'microflo-example-arduino' is not in the npm registry.
31 error 404 You should bug the author to publish it (or use the name yourself!)
32 error 404 Note that you can also install from a
33 error 404 tarball, folder, http url, or git url.
34 verbose exit [ 1, true ]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.