Skip to content

Commit

Permalink
basic azure iot hub support
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed May 13, 2022
1 parent 7588366 commit d5fe674
Show file tree
Hide file tree
Showing 8 changed files with 412 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"minisearch": "^4.0.3",
"notistack": "^2.0.4",
"octokit-plugin-create-pull-request": "^3.11.0",
"paho-mqtt": "^1.1.0",
"papaparse": "^5.3.2",
"peerjs": "^1.3.2",
"postcss": "^8.4.12",
Expand Down
2 changes: 1 addition & 1 deletion src/components/blockly/dsl/workers/vm.proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import workerProxy, { WorkerProxy } from "./proxy"
import { CHANGE, MESSAGE } from "../../../../../jacdac-ts/src/jdom/constants"
import { JDBridge } from "../../../../../jacdac-ts/src/jdom/bridge"
import bus from "../../../../jacdac/providerbus"
import { toHex } from "../../../../../jacdac-ts/src/jdom/utils"

class JacscriptBridge extends JDBridge {
state: VMState = "stopped"
Expand Down Expand Up @@ -58,6 +57,7 @@ class JacscriptBridge extends JDBridge {
let bridge: JacscriptBridge
export function mountJacscriptBridge() {
if (bridge) throw new Error("unmounted bridge")

const worker = workerProxy("vm")
const b = (bridge = new JacscriptBridge(worker))
bridge.bus = bus
Expand Down
1 change: 1 addition & 0 deletions src/components/dashboard/DashboardAzureIoTHubHealth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function ConnectionStringDialog(props: {
label="Value"
fullWidth={true}
type="password"
size="small"
placeholder="Connection string"
onChange={handleValueChange}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/components/dashboard/DashboardJacscriptCloud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ export default function DashboardJacscriptCloud(props: DashboardServiceProps) {
<SwitchWithLabel
checked={connected}
label="connected"
readOnly={!server}
readOnly={!server || server.controlled}
color={color}
onChange={handleConnected}
/>
Expand Down
Loading

0 comments on commit d5fe674

Please sign in to comment.