Blockly: New Azure Deployment
blockly softata
The latest “Generic” version of Softata Blockly app has been published to to Azure enabling remote usage by a suitably configured RPi Pico W (with Softata Sketch).
Links
1.
New Azure Deployment https://softatawebapigeneric.azurewebsites.net/
2.
Previous deployment (still there) https://softatawebapii.azurewebsites.net/
4.
Softata Blog Posts
5.
Blockly-Softata specic posts
Note that with the Blog Posts the links are listed chronologically oldest to newest.
If you want to build or extend the code:
5.
GitHub Repository djaus2/Soft-ata
6.
Also this separate low level library is needed to build the sketch required for the later version of Blockly
(It implements all of the devices that can be connected to the Pico.)
djaus2/SoftataDevices
About 1. and 2. as above
Softa-ata implements 3 apps along with library that all 3 use. Console, Blazer andBlockly apps. With the first versions of the apps, for example the Blockly version, link 2 above, there were “packages” of connected devices. For example, a sensor was read and displayed on an LCD diplay.
With the second version, focus has been upon extensibility. To add a new peripheral device, in the main, you only need add its class, as an extension of its device type class to the low level Arduino library (link 6). For the Console2 and Blazor2 apps, you only exercise one peripheral at a time. You can read sensor values or send entered text to the LCD but not simultaneously. You can’t feed the sensor values to the LCD display. The purpose was to focus upon testing teh functionality of connecetd devices.
The new Blockly app can though read values into a variable and then send it to a connected display. With this version, unlike the previous version, the blocks are not peripheral specific.
1.
Select Device Type

2.
Select Device of that type

3.
Instantiate it

4.
Get list of “generic” commands (commands supported by all devices of that type)

5.
Choose a command

6.
Prompt for parameters as a CSV list

7.
Run command

Note that there is no mention of any specific peripheral devices or device types such as a sensor or display.
In the following blocks for a version 1 app, Actuator type is specifically named as /Actuator/
in the blocks:


Using the Azure sites.
This has been discussed in previous posts. You need ngrok for remote access. A Quick Start with Blockly
With both vesrions, you can download a built sketch and deploy that to a RPi Pico W.
Nb: The new sketch for Version 2 is coming. Watch this space.
Footnote
For Markdown numbered lists where there are, say, iamges between list items, hardwire the numbers as code. eg
```5.``` Choose a command
shows as
5.
Choose a command
Topic | Subtopic | |
Next: > | Blockly | Meta-Info and Session |
< Prev: | Azure Devops | Jekyll Deployment - Script for Direct Deployment updates |

