this is example of simple service that allows executing js code and passes back the output (but one can put anything else into handleLine method like e.g. AT commands parser)
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
There is onWrite event, see
here https://gist.github.com/fanoush/04d0777f99bb4d153aa1a40aa218db55#file-desay-jseval-js-L11
this is example of simple service that allows executing js code and passes back the output (but one can put anything else into handleLine method like e.g. AT commands parser)