v7.17beta [testing] is released!



Thank you @Mikrotik for these!

For other folks, I wrote up [dense] examples of new “:convert” and “:serialize” methods – since the usage of the above new scripting function may not be clear from the RN:
CSV parsing ([de]serialize’s =dsv)
binary/IOT/“hexstring” data parsing (convert’s =byte-array =bit-array =hex =num)

With 7.17 specifically, “:convert from=num to=raw” adds converting from an ASCII code, into a letter (among other uses). Combined with “inkey” to collect a single character but returns a numeric (“num”) ASCII code, so if you want to match on a letter, it’s much shorter now.

:put "Press 'y' to continue, or any other key to abort"
:if ( [:convert from=num to=raw [/terminal/inkey]] != "y" ) do={ :error "script stopped by user" }
# more code after 'y' key ...