codeformat

This commit is contained in:
alex 2026-06-21 13:54:38 +01:00
parent 6870b04fb2
commit a7c3407da7
2 changed files with 7 additions and 8 deletions

View file

@ -119,9 +119,10 @@ Pattern.prototype.mqtt = function (
});
};
// This adds the 'move' and 'motor' commands to strudel
export const { move, motor } = createParams('move', 'motor'); window.move = move; window.motor = motor;
export const { move, motor } = createParams('move', 'motor');
window.move = move;
window.motor = motor;
// This adds the 'robot' command
Pattern.prototype.robot = function (robot_id, address = 'ws://192.168.8.248:9001/mqtt') {
return this.mqtt(undefined, undefined, '/move/' + robot_id, address);