Skip to content

Commit c0966a3

Browse files
author
Ke, Mingze
committed
Fixed mqtt for Smart
1 parent ed28be0 commit c0966a3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

generators/webduino.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,16 +875,16 @@ Blockly.JavaScript['smart_ready'] = function (block) {
875875
var type;
876876
if (checkbox_type_ == '1') {
877877
if (checkbox_multi_ == 'TRUE') {
878-
type = "boardReady({board: 'Smart', device:" + value_device_ + ", multi: true}, async function (board) {\n";
878+
type = "boardReady({board: 'Smart', transport: 'mqtt', device:" + value_device_ + ", multi: true}, async function (board) {\n";
879879
} else {
880-
type = "boardReady({board: 'Smart', device:" + value_device_ + ", multi: false}, async function (board) {\n";
880+
type = "boardReady({board: 'Smart', transport: 'mqtt', device:" + value_device_ + ", multi: false}, async function (board) {\n";
881881
}
882882
} else if (checkbox_type_ == '2') {
883883
type = "boardReady({board: 'Smart', transport: 'serial', path: " + value_device_ + "}, async function (board) {\n";
884884
} else if (checkbox_type_ == '3') {
885885
type = "boardReady({board: 'Smart', transport: 'bluetooth', address: " + value_device_ + "}, async function (board) {\n";
886886
} else if (checkbox_type_ == '4') {
887-
type = "boardReady({board: 'Smart', transport: 'websocket', url: " + value_device_ + "}, async function (board) {\n";
887+
type = "boardReady({board: 'Smart', url: " + value_device_ + "}, async function (board) {\n";
888888
}
889889

890890
var code;

0 commit comments

Comments
 (0)