Next release of #VSCP #IoT #m2m

It’s been quite some time now since the last release of VSCP & Friends. Sorry to say it will be a few months more until the release is out. Why? Mostly because there is a lot to do and if Google and the likes can do a man year in a week a man year is a man year for someone working alone on a project as I am.  But there is a lot of nice functionality coming so it is hopefully worth the wait.

Of course you can use the head code. But beware that database structures will change still for some time and if you use head code please remove all configuration data including databases so it get built from scratch. This will of course be taken care of automatically when the release is out.

And again of course if someone want to take part in the project (there is many tasks) or sponsor it please let me know.

#JavaScript in decision matrix of #VSCP #IoT #m2m

Now it is possible to use execution of JavaScript as a result from a triggered action in the decision matrix of the VSCP Daemon.  Things that is triggering an action can typically be events from external nodes or internal VSCP daemon generated events.  For example a measurement value can be sent to a remote cloud service or an ON event can enable some special on-board functionality or just toggle a pin on some output. The possibilities are endless.

With the VSCP decision matrix escape functionality dynamic data can be written into the JavaScript before it is executed. This includes the triggering event data as well as environment information.

File, encryption and socket functionality is available from inside the script plus functions to send event, receive events, handle VSCP remote variables, handle measurements and more.

As a script can be stored in a VSCP remote variable it can be externally edited and functionality can therefore be dynamic.

The new functionality is described here.

Callback functions for VSCP functionality is described here.

LUA scripting will be added later making it possible to do slightly more complicated scripting.

mJS – a new approach to embedded scripting

There are many projects out there that aim to bring scripting on microcontrollers. There are several JavaScript projects, like Duktape, Espruino, Jerryscript, MuJS, V7. There is MicroPython, there is Lua, and others. One common thing these projects share is an attempt to implement the whole language specification, together with the

Source: mJS – a new approach to embedded scripting