Skip to content

Commit

Permalink
Add ODriveCan node
Browse files Browse the repository at this point in the history
  • Loading branch information
TonProtofy committed Nov 18, 2024
1 parent defad54 commit 57b0983
Show file tree
Hide file tree
Showing 5 changed files with 680 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/protodevice/src/Subsystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Action = ({ deviceName, action }) => {
const sendValue = value != undefined ? value : action.payload.value
if (action.connectionType == "mqtt") {
console.log("MQTT Dev: ", action.payload)
client.publish(getPeripheralTopic(deviceName, action.endpoint), (action.payload.type == "json" || action.payload.type == "json-schema") ? JSON.stringify(sendValue) : sendValue.toString())
client.publish(getPeripheralTopic(deviceName, action.endpoint), (action.payload.type == "json" || action.payload.type == "json-schema" || Array.isArray(action?.payload)) ? JSON.stringify(sendValue) : sendValue.toString())
}
}

Expand Down
Loading

0 comments on commit 57b0983

Please sign in to comment.