#Usage
-
Step1: Scratch Extension
- Launch your Scratch Offline Editor.
- Click
File
with pressing shift, there will be an additional optionimport experimental HTTP extension
.
3. Choose
S4A.s2e
and import it, then you will see some new blocks inMore Blocks
. -
Step2: MQTT broker
Launch an MQTT broker.
-
Step3: scratch-mqtt Project
- Run
ScratchPublisher.java
to listen for Scratch signals and tranfer them toSubscriber.java
. - Run
Subscriber.java
to listen for tranferred data fromScratchPublisher.java
.
- Run
-
Step4: When click blocks on Scrach Editor to run. The result of receiving signal from Scratch Editor will show on ScratchPublisher.