Lines Matching refs:err

17 	int err;  in cmd_priv_beacon_get()  local
19 err = bt_mesh_priv_beacon_cli_get(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_beacon_get()
22 if (err) { in cmd_priv_beacon_get()
23 shell_error(sh, "Failed to send Private Beacon Get (err %d)", err); in cmd_priv_beacon_get()
35 int err = 0; in cmd_priv_beacon_set() local
37 val.enabled = shell_strtobool(argv[1], 0, &err); in cmd_priv_beacon_set()
38 if (err) { in cmd_priv_beacon_set()
40 return err; in cmd_priv_beacon_set()
43 val.rand_interval = shell_strtoul(argv[2], 0, &err); in cmd_priv_beacon_set()
44 if (err) { in cmd_priv_beacon_set()
46 return err; in cmd_priv_beacon_set()
49 err = bt_mesh_priv_beacon_cli_set(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_beacon_set()
52 if (err) { in cmd_priv_beacon_set()
53 shell_error(sh, "Failed to send Private Beacon Set (err %d)", err); in cmd_priv_beacon_set()
63 int err; in cmd_priv_gatt_proxy_get() local
65 err = bt_mesh_priv_beacon_cli_gatt_proxy_get(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_gatt_proxy_get()
67 if (err) { in cmd_priv_gatt_proxy_get()
68 shell_error(sh, "Failed to send Private GATT Proxy Get (err %d)", err); in cmd_priv_gatt_proxy_get()
80 int err = 0; in cmd_priv_gatt_proxy_set() local
82 state = shell_strtobool(argv[1], 0, &err); in cmd_priv_gatt_proxy_set()
83 if (err) { in cmd_priv_gatt_proxy_set()
85 return err; in cmd_priv_gatt_proxy_set()
88 err = bt_mesh_priv_beacon_cli_gatt_proxy_set(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_gatt_proxy_set()
90 if (err) { in cmd_priv_gatt_proxy_set()
91 shell_error(sh, "Failed to send Private GATT Proxy Set (err %d)", err); in cmd_priv_gatt_proxy_set()
102 int err = 0; in cmd_priv_node_id_get() local
104 key_net_idx = shell_strtoul(argv[1], 0, &err); in cmd_priv_node_id_get()
106 err = bt_mesh_priv_beacon_cli_node_id_get(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_node_id_get()
108 if (err) { in cmd_priv_node_id_get()
109 shell_error(sh, "Failed to send Private Node Identity Get (err %d)", err); in cmd_priv_node_id_get()
122 int err = 0; in cmd_priv_node_id_set() local
124 val.net_idx = shell_strtoul(argv[1], 0, &err); in cmd_priv_node_id_set()
125 val.state = shell_strtoul(argv[2], 0, &err); in cmd_priv_node_id_set()
127 if (err) { in cmd_priv_node_id_set()
129 return err; in cmd_priv_node_id_set()
132 err = bt_mesh_priv_beacon_cli_node_id_set(bt_mesh_shell_target_ctx.net_idx, in cmd_priv_node_id_set()
134 if (err) { in cmd_priv_node_id_set()
135 shell_error(sh, "Failed to send Private Node Identity Set (err %d)", err); in cmd_priv_node_id_set()