Hi folks,
Version 2.4.0 of the node-red-contrib-blockly is available in the palette
![:clinking_glasses: :clinking_glasses:](https://emoji.discourse-cdn.com/twitter/clinking_glasses.png?v=12)
This version contains the following changes:
-
New block to convert a buffer to a list:
![image](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/d/b/db6ac2ab04c9ed0dde112633670f92031f78da63.png)
-
New block to convert a list to a buffer:
![image](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/0/9/09a5ff069d29351674d441f868030bdb5a1b0576.png)
-
Copy-paste blocks between Blockly nodes:
![copy_paste_blocks](https://global.discourse-cdn.com/business6/uploads/nodered/original/3X/5/5/554ce27de8a1c09bad13498808e1bdd0fa29ce68.gif)
Thanks to @cymplecy for testing this release, and implementing the 2 new blocks! Believe it or not but he managed to do that using 100% javascript, so without using Blockly nodes ![:yum: :yum:](https://emoji.discourse-cdn.com/twitter/yum.png?v=12)
And also thanks to the charming ladies of the Blockly team at Google to assist me to get the plugin-cross-tab-copy-paste up and running in Node-RED!
Have fun with this,
Bart
3 Likes
And here's what the new buffer <> list blocks look like
demonstrating that we can now easily use the more comprehesive list blocks to manipulate data and then convert back (if required)
[edit}Will come in vey useful in my MQTT broker project ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
2 Likes
The ability to copy / paste blocks from one node to another will revolutionise the use of Blockly ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
As it means we can construct useful functions and just copy/paste them into a node whenever they are needed.
Now, I know what all you function node people are saying - how come its taken so long!
Just to say, stuff like this wasn't considered important when it was just kids writing little games using Scratch and it's taken a while before its made it to the top of the ToDo list ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
But I'm VERY happy its now here ![:slight_smile: :slight_smile:](https://emoji.discourse-cdn.com/twitter/slight_smile.png?v=12)
1 Like