Coming from JS, I find it very difficult to program Arduino in C++ (not even knowing which version or what features are supported), being bound to the loop
and delay
, not being able to (easily) use anonymous functions in parameters or async code.
I know JS isn't natively supported by Arduino, but I know languages can be transpiled.
I have seen many solutions, so just to pick few:
JohnnyFive J5, which runs via cable on a host PC,
NectarJS with their arduino-uno
target,
or andrei-markeev/ts2c which converts ES3 to C89.
Each of them come with their own limitations and it's very difficult to find the right without prior experience with IoT. Did anyone walk this path already and found a viable solution?