Skip to content

Commit

Permalink
Merge pull request #24 from MicrosoftDocs/mqtt
Browse files Browse the repository at this point in the history
Update MQTT Sample
  • Loading branch information
malik617dev authored Jan 10, 2025
2 parents a29e1f6 + d81b01c commit 9692640
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions manufacturing-cloud/configure/mqtt/wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,8 @@ function main(arg) {
var data = JSON.parse(atob(arg));
var type = data.MessageType;

var wrap = {
return {
type: type,
body: null
body: data
};

if (type == "ua-data") {
wrap.body = {
"DmmDatasetMessage": [
data
]
};
} else {
wrap.body = data;
}

return wrap;
}

0 comments on commit 9692640

Please sign in to comment.