mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-02 08:34:26 +08:00
gatttool: Remote address is mandatory for non-interactive gatttool
For gatttool non-interactive mode, command line parameter with bluetooth remote address is mandatory.
This commit is contained in:
parent
58123ad784
commit
8f84a47e8d
@ -603,6 +603,12 @@ int main(int argc, char *argv[])
|
||||
goto done;
|
||||
}
|
||||
|
||||
if (opt_dst == NULL) {
|
||||
g_print("Remote Bluetooth address required\n");
|
||||
got_error = TRUE;
|
||||
goto done;
|
||||
}
|
||||
|
||||
chan = gatt_connect(opt_src, opt_dst, opt_dst_type, opt_sec_level,
|
||||
opt_psm, opt_mtu, connect_cb);
|
||||
if (chan == NULL) {
|
||||
|
Loading…
Reference in New Issue
Block a user