@@ -97,9 +97,9 @@ public interface libsimpleble extends Library
9797
9898 boolean simpleble_peripheral_connect (Pointer handle );
9999
100- boolean simpleble_peripheral_write_command (Pointer handle , byte [] data , size_t length , uuid_t .ByValue service , uuid_t .ByValue characteristic );
100+ boolean simpleble_peripheral_write_command (Pointer handle , uuid_t .ByValue service , uuid_t .ByValue characteristic , byte [] data , size_t length );
101101
102- boolean simpleble_peripheral_write_request (Pointer handle , uuid_t service , uuid_t characteristic , byte [] data , size_t length );
102+ boolean simpleble_peripheral_write_request (Pointer handle , uuid_t . ByValue service , uuid_t . ByValue characteristic , byte [] data , size_t length );
103103
104104 boolean simpleble_peripheral_services_get (Pointer handle , int index , service_t services );
105105
@@ -286,17 +286,17 @@ public boolean connectToPeripheral(Pointer peripheralHandle)
286286 }
287287
288288 public boolean writeCommand (Pointer peripheralHandle ,
289- byte [] data ,
290- libsimpleble .size_t length ,
291289 libsimpleble .uuid_t .ByValue serviceUuid ,
292- libsimpleble .uuid_t .ByValue characteristicUuid )
290+ libsimpleble .uuid_t .ByValue characteristicUuid ,
291+ byte [] data ,
292+ libsimpleble .size_t length )
293293 {
294- return libsimpleble .INSTANCE .simpleble_peripheral_write_command (peripheralHandle , data , length , serviceUuid , characteristicUuid );
294+ return libsimpleble .INSTANCE .simpleble_peripheral_write_command (peripheralHandle , serviceUuid , characteristicUuid , data , length );
295295 }
296296
297297 public boolean writeRequest (Pointer peripheralHandle ,
298- libsimpleble .uuid_t serviceUuid ,
299- libsimpleble .uuid_t characteristicUuid ,
298+ libsimpleble .uuid_t . ByValue serviceUuid ,
299+ libsimpleble .uuid_t . ByValue characteristicUuid ,
300300 byte [] data ,
301301 libsimpleble .size_t length )
302302 {
0 commit comments