We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent df46965 commit 6e997b5Copy full SHA for 6e997b5
1 file changed
README.md
@@ -140,16 +140,16 @@ pnpm add tauri-plugin-serialplugin-api
140
});
141
await port.open();
142
143
- // Write data
144
- await port.write("Hello, Serial Port!");
+ // Write data
+ await port.write("Hello, Serial Port!");
145
146
- // Start port listening
147
- await port.startListening();
+ // Start port listening
+ await port.startListening();
148
149
150
- const unsubscribe = await port.listen((data) => {
151
- console.log("Received:", data);
152
- });
+ const unsubscribe = await port.listen((data) => {
+ console.log("Received:", data);
+ });
153
154
// Stop listening when done
155
await port.cancelListen();
0 commit comments