This is my first post here, and I'm sorry if the question has been asked and answered before, but I'm curious to know is there a way to make one of the digital input pins start a node server? As it is currently I use the command line to start and terminate the node, but would it be possible to make a button input that could run the file? Any help is much appreciated and if this has been resolved before please send me a link to the thread.
Thanks in advance!
Thanks for your interest in the Intel Galileo platform.
I think that it is possible to do this by creating and running a program that is waiting for a digital input, maybe using a Galileo interrupt pin, and then execute your node program after the input change has been detected. You could run this program in the Linux terminal and also, it is possible to run it in the background, in order to do it you can add "&" to the command line, for example # node my_code.js &
Additionally, you can find useful information regarding the Galileo interrupts here: /message/231257# 231257 https://communities.intel.com/message/231257# 231257.
Hope this information helps.