Menambah deskripsi di README.md #23
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "tauri-plugin-bluclas"
|
||||
version = "0.1.18"
|
||||
version = "0.1.19"
|
||||
authors = [ "Rizky Denianto" ]
|
||||
description = "Program sederhana untuk interaksi dengan bluetooth classic"
|
||||
edition = "2024"
|
||||
|
||||
+1
-1
@@ -21,5 +21,5 @@ export type SBlueclasMuatanKirim = {
|
||||
};
|
||||
|
||||
export async function kirim(muatan: SBlueclasMuatanKirim): Promise<null> {
|
||||
return await invoke<null>("plugin:bluclas|kirim", { payload: muatan });
|
||||
return await invoke<null>("plugin:bluclas|kirim", { muatan: muatan });
|
||||
}
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@segubi/tauri-plugin-bluclas-api",
|
||||
"version": "0.1.18",
|
||||
"version": "0.1.19",
|
||||
"author": "Rizky Denianto",
|
||||
"description": "Program sederhana untuk interaksi dengan bluetooth classic",
|
||||
"type": "module",
|
||||
|
||||
+2
-2
@@ -14,7 +14,7 @@ pub(crate) async fn daftar_perangkat<R: Runtime>(
|
||||
#[command]
|
||||
pub(crate) async fn kirim<R: Runtime>(
|
||||
app: AppHandle<R>,
|
||||
payload: SBlueclasMuatanKirim,
|
||||
muatan: SBlueclasMuatanKirim,
|
||||
) -> Result<()> {
|
||||
return app.bluclas().kirim(payload);
|
||||
return app.bluclas().kirim(muatan);
|
||||
}
|
||||
+2
-2
@@ -32,10 +32,10 @@ impl<R: Runtime> Bluclas<R> {
|
||||
.map_err(Into::into);
|
||||
}
|
||||
|
||||
pub fn kirim(&self, payload: SBlueclasMuatanKirim) -> crate::Result<()> {
|
||||
pub fn kirim(&self, muatan: SBlueclasMuatanKirim) -> crate::Result<()> {
|
||||
return self
|
||||
.0
|
||||
.run_mobile_plugin("kirim", payload)
|
||||
.run_mobile_plugin("kirim", muatan)
|
||||
.map_err(Into::into);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user