Lines Matching full:sh
21 static int cmd_reset(const struct shell *sh, size_t argc, char *argv[]) in cmd_reset() argument
29 shell_error(sh, "Unable to send Remote Node Reset (err %d)", err); in cmd_reset()
41 shell_print(sh, "Remote node reset complete"); in cmd_reset()
46 static int cmd_timeout(const struct shell *sh, size_t argc, char *argv[]) in cmd_timeout() argument
55 shell_warn(sh, "Unable to parse input string argument"); in cmd_timeout()
70 shell_print(sh, "Message timeout: forever"); in cmd_timeout()
72 shell_print(sh, "Message timeout: %u seconds", timeout_ms / 1000); in cmd_timeout()
78 static int cmd_get_comp(const struct shell *sh, size_t argc, char *argv[]) in cmd_get_comp() argument
89 shell_warn(sh, "Unable to parse input string argument"); in cmd_get_comp()
97 shell_error(sh, "Getting composition failed (err %d)", err); in cmd_get_comp()
102 shell_print(sh, "Got page 0x%02x. No parser available.", in cmd_get_comp()
111 shell_error(sh, "Couldn't parse Composition data (err %d)", in cmd_get_comp()
116 shell_print(sh, "Got Composition Data for 0x%04x:", bt_mesh_shell_target_ctx.dst); in cmd_get_comp()
117 shell_print(sh, "\tCID 0x%04x", comp.cid); in cmd_get_comp()
118 shell_print(sh, "\tPID 0x%04x", comp.pid); in cmd_get_comp()
119 shell_print(sh, "\tVID 0x%04x", comp.vid); in cmd_get_comp()
120 shell_print(sh, "\tCRPL 0x%04x", comp.crpl); in cmd_get_comp()
121 shell_print(sh, "\tFeatures 0x%04x", comp.feat); in cmd_get_comp()
126 shell_print(sh, "\tElement @ 0x%04x:", elem.loc); in cmd_get_comp()
129 shell_print(sh, "\t\tSIG Models:"); in cmd_get_comp()
131 shell_print(sh, "\t\tNo SIG Models"); in cmd_get_comp()
137 shell_print(sh, "\t\t\t0x%04x", mod_id); in cmd_get_comp()
141 shell_print(sh, "\t\tVendor Models:"); in cmd_get_comp()
143 shell_print(sh, "\t\tNo Vendor Models"); in cmd_get_comp()
150 shell_print(sh, "\t\t\tCompany 0x%04x: 0x%04x", in cmd_get_comp()
166 shell_error(sh, "Composition data empty"); in cmd_get_comp()
169 shell_print(sh, in cmd_get_comp()
176 shell_print(sh, "\tElement #%d description", mod_idx); in cmd_get_comp()
180 shell_print(sh, "\t\tSIG Model Item #%d:", i+1); in cmd_get_comp()
182 shell_print(sh, in cmd_get_comp()
186 shell_print(sh, in cmd_get_comp()
189 shell_print(sh, in cmd_get_comp()
196 shell_print(sh, in cmd_get_comp()
199 shell_print(sh, in cmd_get_comp()
202 shell_print(sh, in cmd_get_comp()
206 shell_print(sh, in cmd_get_comp()
209 shell_print(sh, in cmd_get_comp()
217 shell_print(sh, "\t\tVendor Model Item #%d:", i+1); in cmd_get_comp()
219 shell_print(sh, in cmd_get_comp()
223 shell_print(sh, in cmd_get_comp()
226 shell_print(sh, in cmd_get_comp()
233 shell_print(sh, in cmd_get_comp()
236 shell_print(sh, in cmd_get_comp()
239 shell_print(sh, in cmd_get_comp()
243 shell_print(sh, in cmd_get_comp()
246 shell_print(sh, in cmd_get_comp()
257 shell_print(sh, "\t\t...truncated data!"); in cmd_get_comp()
263 static int cmd_beacon(const struct shell *sh, size_t argc, char *argv[]) in cmd_beacon() argument
275 shell_warn(sh, "Unable to parse input string argument"); in cmd_beacon()
284 shell_error(sh, "Unable to send Beacon Get/Set message (err %d)", err); in cmd_beacon()
288 shell_print(sh, "Beacon state is 0x%02x", status); in cmd_beacon()
293 static int cmd_ttl(const struct shell *sh, size_t argc, char *argv[]) in cmd_ttl() argument
305 shell_warn(sh, "Unable to parse input string argument"); in cmd_ttl()
314 shell_error(sh, "Unable to send Default TTL Get/Set (err %d)", err); in cmd_ttl()
318 shell_print(sh, "Default TTL is 0x%02x", ttl); in cmd_ttl()
323 static int cmd_friend(const struct shell *sh, size_t argc, char *argv[]) in cmd_friend() argument
335 shell_warn(sh, "Unable to parse input string argument"); in cmd_friend()
344 shell_error(sh, "Unable to send Friend Get/Set (err %d)", err); in cmd_friend()
348 shell_print(sh, "Friend is set to 0x%02x", frnd); in cmd_friend()
353 static int cmd_gatt_proxy(const struct shell *sh, size_t argc, char *argv[]) in cmd_gatt_proxy() argument
365 shell_warn(sh, "Unable to parse input string argument"); in cmd_gatt_proxy()
374 shell_print(sh, "Unable to send GATT Proxy Get/Set (err %d)", err); in cmd_gatt_proxy()
378 shell_print(sh, "GATT Proxy is set to 0x%02x", proxy); in cmd_gatt_proxy()
383 static int cmd_polltimeout_get(const struct shell *sh, size_t argc, char *argv[]) in cmd_polltimeout_get() argument
391 shell_warn(sh, "Unable to parse input string argument"); in cmd_polltimeout_get()
398 shell_error(sh, "Unable to send LPN PollTimeout Get (err %d)", err); in cmd_polltimeout_get()
402 shell_print(sh, "PollTimeout value %d", poll_timeout); in cmd_polltimeout_get()
407 static int cmd_net_transmit(const struct shell *sh, size_t argc, char *argv[]) in cmd_net_transmit() argument
417 shell_warn(sh, "Wrong number of input arguments" in cmd_net_transmit()
427 shell_warn(sh, "Unable to parse input string argument"); in cmd_net_transmit()
439 shell_error(sh, "Unable to send network transmit Get/Set (err %d)", err); in cmd_net_transmit()
443 shell_print(sh, "Transmit 0x%02x (count %u interval %ums)", transmit, in cmd_net_transmit()
449 static int cmd_relay(const struct shell *sh, size_t argc, char *argv[]) in cmd_relay() argument
480 shell_warn(sh, "Unable to parse input string argument"); in cmd_relay()
490 shell_error(sh, "Unable to send Relay Get/Set (err %d)", err); in cmd_relay()
494 shell_print(sh, "Relay is 0x%02x, Transmit 0x%02x (count %u interval %ums)", relay, in cmd_relay()
500 static int cmd_net_key_add(const struct shell *sh, size_t argc, char *argv[]) in cmd_net_key_add() argument
510 shell_warn(sh, "Unable to parse input string argument"); in cmd_net_key_add()
529 shell_error(sh, "Subnet 0x%03x already has a value", key_net_idx); in cmd_net_key_add()
537 shell_error(sh, "No space for subnet in cdb"); in cmd_net_key_add()
549 shell_print(sh, "Unable to send NetKey Add (err %d)", err); in cmd_net_key_add()
554 shell_print(sh, "NetKeyAdd failed with status 0x%02x", status); in cmd_net_key_add()
556 shell_print(sh, "NetKey added with NetKey Index 0x%03x", key_net_idx); in cmd_net_key_add()
562 static int cmd_net_key_update(const struct shell *sh, size_t argc, char *argv[]) in cmd_net_key_update() argument
572 shell_warn(sh, "Unable to parse input string argument"); in cmd_net_key_update()
589 shell_print(sh, "Unable to send NetKey Update (err %d)", err); in cmd_net_key_update()
594 shell_print(sh, "NetKeyUpdate failed with status 0x%02x", status); in cmd_net_key_update()
596 shell_print(sh, "NetKey updated with NetKey Index 0x%03x", key_net_idx); in cmd_net_key_update()
602 static int cmd_net_key_get(const struct shell *sh, size_t argc, char *argv[]) in cmd_net_key_get() argument
613 shell_print(sh, "Unable to send NetKeyGet (err %d)", err); in cmd_net_key_get()
617 shell_print(sh, "NetKeys known by 0x%04x:", bt_mesh_shell_target_ctx.dst); in cmd_net_key_get()
619 shell_print(sh, "\t0x%03x", keys[i]); in cmd_net_key_get()
625 static int cmd_net_key_del(const struct shell *sh, size_t argc, char *argv[]) in cmd_net_key_del() argument
633 shell_warn(sh, "Unable to parse input string argument"); in cmd_net_key_del()
640 shell_print(sh, "Unable to send NetKeyDel (err %d)", err); in cmd_net_key_del()
645 shell_print(sh, "NetKeyDel failed with status 0x%02x", status); in cmd_net_key_del()
647 shell_print(sh, "NetKey 0x%03x deleted", key_net_idx); in cmd_net_key_del()
653 static int cmd_app_key_add(const struct shell *sh, size_t argc, char *argv[]) in cmd_app_key_add() argument
664 shell_warn(sh, "Unable to parse input string argument"); in cmd_app_key_add()
683 shell_error(sh, "App key 0x%03x already has a value", key_app_idx); in cmd_app_key_add()
691 shell_error(sh, "No space for app key in cdb"); in cmd_app_key_add()
704 shell_error(sh, "Unable to send App Key Add (err %d)", err); in cmd_app_key_add()
709 shell_print(sh, "AppKeyAdd failed with status 0x%02x", status); in cmd_app_key_add()
711 shell_print(sh, "AppKey added, NetKeyIndex 0x%04x AppKeyIndex 0x%04x", key_net_idx, in cmd_app_key_add()
718 static int cmd_app_key_upd(const struct shell *sh, size_t argc, char *argv[]) in cmd_app_key_upd() argument
729 shell_warn(sh, "Unable to parse input string argument"); in cmd_app_key_upd()
746 shell_error(sh, "Unable to send App Key Update (err %d)", err); in cmd_app_key_upd()
751 shell_print(sh, "AppKey update failed with status 0x%02x", status); in cmd_app_key_upd()
753 shell_print(sh, "AppKey updated, NetKeyIndex 0x%04x AppKeyIndex 0x%04x", in cmd_app_key_upd()
760 static int cmd_app_key_get(const struct shell *sh, size_t argc, char *argv[]) in cmd_app_key_get() argument
772 shell_warn(sh, "Unable to parse input string argument"); in cmd_app_key_get()
779 shell_print(sh, "Unable to send AppKeyGet (err %d)", err); in cmd_app_key_get()
784 shell_print(sh, "AppKeyGet failed with status 0x%02x", status); in cmd_app_key_get()
788 shell_print(sh, "AppKeys for NetKey 0x%03x known by 0x%04x:", net_idx, in cmd_app_key_get()
791 shell_print(sh, "\t0x%03x", keys[i]); in cmd_app_key_get()
797 static int cmd_node_id(const struct shell *sh, size_t argc, char *argv[]) in cmd_node_id() argument
805 shell_warn(sh, "Unable to parse input string argument"); in cmd_node_id()
814 shell_print(sh, "Unable to send Node Identify Get (err %d)", err); in cmd_node_id()
821 shell_warn(sh, "Unable to parse input string argument"); in cmd_node_id()
829 shell_print(sh, "Unable to send Node Identify Set (err %d)", err); in cmd_node_id()
835 shell_print(sh, "Node Identify Get/Set failed with status 0x%02x", status); in cmd_node_id()
837 shell_print(sh, "Node Identify Get/Set successful with identify 0x%02x", identify); in cmd_node_id()
843 static int cmd_app_key_del(const struct shell *sh, size_t argc, char *argv[]) in cmd_app_key_del() argument
852 shell_warn(sh, "Unable to parse input string argument"); in cmd_app_key_del()
860 shell_error(sh, "Unable to send App Key del(err %d)", err); in cmd_app_key_del()
865 shell_print(sh, "AppKeyDel failed with status 0x%02x", status); in cmd_app_key_del()
867 shell_print(sh, "AppKey deleted, NetKeyIndex 0x%04x AppKeyIndex 0x%04x", in cmd_app_key_del()
874 static int cmd_mod_app_bind(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_app_bind() argument
884 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_app_bind()
891 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_app_bind()
905 shell_error(sh, "Unable to send Model App Bind (err %d)", err); in cmd_mod_app_bind()
910 shell_print(sh, "Model App Bind failed with status 0x%02x", status); in cmd_mod_app_bind()
912 shell_print(sh, "AppKey successfully bound"); in cmd_mod_app_bind()
918 static int cmd_mod_app_unbind(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_app_unbind() argument
928 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_app_unbind()
935 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_app_unbind()
949 shell_error(sh, "Unable to send Model App Unbind (err %d)", err); in cmd_mod_app_unbind()
954 shell_print(sh, "Model App Unbind failed with status 0x%02x", status); in cmd_mod_app_unbind()
956 shell_print(sh, "AppKey successfully unbound"); in cmd_mod_app_unbind()
962 static int cmd_mod_app_get(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_app_get() argument
975 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_app_get()
982 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_app_get()
996 shell_error(sh, "Unable to send Model App Get (err %d)", err); in cmd_mod_app_get()
1001 shell_print(sh, "Model App Get failed with status 0x%02x", status); in cmd_mod_app_get()
1003 shell_print(sh, "Apps bound to Element 0x%04x, Model 0x%04x %s:", elem_addr, mod_id, in cmd_mod_app_get()
1007 shell_print(sh, "\tNone."); in cmd_mod_app_get()
1011 shell_print(sh, "\t0x%04x", apps[i]); in cmd_mod_app_get()
1018 static int cmd_mod_sub_add(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_add() argument
1028 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_add()
1035 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_add()
1049 shell_error(sh, "Unable to send Model Subscription Add (err %d)", err); in cmd_mod_sub_add()
1054 shell_print(sh, "Model Subscription Add failed with status 0x%02x", status); in cmd_mod_sub_add()
1056 shell_print(sh, "Model subscription was successful"); in cmd_mod_sub_add()
1062 static int cmd_mod_sub_del(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_del() argument
1072 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_del()
1079 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_del()
1093 shell_error(sh, "Unable to send Model Subscription Delete (err %d)", err); in cmd_mod_sub_del()
1098 shell_print(sh, "Model Subscription Delete failed with status 0x%02x", status); in cmd_mod_sub_del()
1100 shell_print(sh, "Model subscription deltion was successful"); in cmd_mod_sub_del()
1106 static int cmd_mod_sub_add_va(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_add_va() argument
1121 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_add_va()
1128 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_add_va()
1142 shell_error(sh, "Unable to send Mod Sub VA Add (err %d)", err); in cmd_mod_sub_add_va()
1147 shell_print(sh, "Mod Sub VA Add failed with status 0x%02x", status); in cmd_mod_sub_add_va()
1149 shell_print(sh, "0x%04x subscribed to Label UUID %s (va 0x%04x)", elem_addr, in cmd_mod_sub_add_va()
1156 static int cmd_mod_sub_del_va(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_del_va() argument
1171 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_del_va()
1178 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_del_va()
1192 shell_error(sh, "Unable to send Model Subscription Delete (err %d)", err); in cmd_mod_sub_del_va()
1197 shell_print(sh, "Model Subscription Delete failed with status 0x%02x", status); in cmd_mod_sub_del_va()
1199 shell_print(sh, "0x%04x unsubscribed from Label UUID %s (va 0x%04x)", elem_addr, in cmd_mod_sub_del_va()
1206 static int cmd_mod_sub_ow(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_ow() argument
1216 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_ow()
1223 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_ow()
1237 shell_error(sh, "Unable to send Model Subscription Overwrite (err %d)", err); in cmd_mod_sub_ow()
1242 shell_print(sh, "Model Subscription Overwrite failed with status 0x%02x", status); in cmd_mod_sub_ow()
1244 shell_print(sh, "Model subscription overwrite was successful"); in cmd_mod_sub_ow()
1250 static int cmd_mod_sub_ow_va(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_ow_va() argument
1265 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_ow_va()
1272 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_ow_va()
1286 shell_error(sh, "Unable to send Mod Sub VA Overwrite (err %d)", err); in cmd_mod_sub_ow_va()
1291 shell_print(sh, "Mod Sub VA Overwrite failed with status 0x%02x", status); in cmd_mod_sub_ow_va()
1293 shell_print(sh, "0x%04x overwrite to Label UUID %s (va 0x%04x)", elem_addr, argv[2], in cmd_mod_sub_ow_va()
1300 static int cmd_mod_sub_del_all(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_del_all() argument
1309 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_del_all()
1316 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_del_all()
1330 shell_error(sh, "Unable to send Model Subscription Delete All (err %d)", err); in cmd_mod_sub_del_all()
1335 shell_print(sh, "Model Subscription Delete All failed with status 0x%02x", status); in cmd_mod_sub_del_all()
1337 shell_print(sh, "Model subscription deltion all was successful"); in cmd_mod_sub_del_all()
1343 static int cmd_mod_sub_get(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_sub_get() argument
1356 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_get()
1363 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_sub_get()
1377 shell_error(sh, "Unable to send Model Subscription Get (err %d)", err); in cmd_mod_sub_get()
1382 shell_print(sh, "Model Subscription Get failed with status 0x%02x", status); in cmd_mod_sub_get()
1384 shell_print(sh, in cmd_mod_sub_get()
1389 shell_print(sh, "\tNone."); in cmd_mod_sub_get()
1393 shell_print(sh, "\t0x%04x", subs[i]); in cmd_mod_sub_get()
1400 static int cmd_krp(const struct shell *sh, size_t argc, char *argv[]) in cmd_krp() argument
1408 shell_warn(sh, "Unable to parse input string argument"); in cmd_krp()
1420 shell_warn(sh, "Unable to parse input string argument"); in cmd_krp()
1430 shell_error(sh, "Unable to send key refresh phase Get/Set (err %d)", err); in cmd_krp()
1434 shell_print(sh, "Key refresh phase Get/Set with status 0x%02x and phase 0x%02x", status, in cmd_krp()
1440 static int mod_pub_get(const struct shell *sh, uint16_t addr, uint16_t mod_id, uint16_t cid) in mod_pub_get() argument
1457 shell_error(sh, "Model Publication Get failed (err %d)", err); in mod_pub_get()
1462 shell_print(sh, "Model Publication Get failed (status 0x%02x)", status); in mod_pub_get()
1466 shell_print(sh, in mod_pub_get()
1482 static int mod_pub_set(const struct shell *sh, uint16_t addr, bool is_va, uint16_t mod_id, in mod_pub_set() argument
1507 shell_print(sh, "Invalid period"); in mod_pub_set()
1514 shell_print(sh, "Invalid retransmit count"); in mod_pub_set()
1520 shell_warn(sh, "Unable to parse input string argument"); in mod_pub_set()
1525 shell_print(sh, "Invalid retransmit interval %u", interval); in mod_pub_set()
1542 shell_error(sh, "Model Publication Set failed (err %d)", err); in mod_pub_set()
1547 shell_print(sh, "Model Publication Set failed (status 0x%02x)", status); in mod_pub_set()
1549 shell_print(sh, "Model Publication successfully set"); in mod_pub_set()
1555 static int cmd_mod_pub(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_pub() argument
1575 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_pub()
1581 shell_warn(sh, "Invalid number of argument"); in cmd_mod_pub()
1585 return mod_pub_set(sh, addr, false, mod_id, cid, argv); in cmd_mod_pub()
1587 return mod_pub_get(sh, addr, mod_id, cid); in cmd_mod_pub()
1591 static int cmd_mod_pub_va(const struct shell *sh, size_t argc, char *argv[]) in cmd_mod_pub_va() argument
1604 shell_warn(sh, "Unable to parse input string argument"); in cmd_mod_pub_va()
1610 return mod_pub_set(sh, addr, true, mod_id, cid, argv); in cmd_mod_pub_va()
1613 static void hb_sub_print(const struct shell *sh, struct bt_mesh_cfg_cli_hb_sub *sub) in hb_sub_print() argument
1615 shell_print(sh, in hb_sub_print()
1626 static int hb_sub_get(const struct shell *sh, size_t argc, char *argv[]) in hb_sub_get() argument
1635 shell_error(sh, "Heartbeat Subscription Get failed (err %d)", err); in hb_sub_get()
1640 shell_print(sh, "Heartbeat Subscription Get failed (status 0x%02x)", status); in hb_sub_get()
1642 hb_sub_print(sh, &sub); in hb_sub_get()
1648 static int hb_sub_set(const struct shell *sh, size_t argc, char *argv[]) in hb_sub_set() argument
1658 shell_warn(sh, "Unable to parse input string argument"); in hb_sub_set()
1665 shell_error(sh, "Heartbeat Subscription Set failed (err %d)", err); in hb_sub_set()
1670 shell_print(sh, "Heartbeat Subscription Set failed (status 0x%02x)", status); in hb_sub_set()
1672 hb_sub_print(sh, &sub); in hb_sub_set()
1678 static int cmd_hb_sub(const struct shell *sh, size_t argc, char *argv[]) in cmd_hb_sub() argument
1682 shell_warn(sh, "Invalid number of argument"); in cmd_hb_sub()
1686 return hb_sub_set(sh, argc, argv); in cmd_hb_sub()
1688 return hb_sub_get(sh, argc, argv); in cmd_hb_sub()
1692 static int hb_pub_get(const struct shell *sh, size_t argc, char *argv[]) in hb_pub_get() argument
1701 shell_error(sh, "Heartbeat Publication Get failed (err %d)", err); in hb_pub_get()
1706 shell_print(sh, "Heartbeat Publication Get failed (status 0x%02x)", status); in hb_pub_get()
1710 shell_print(sh, "Heartbeat publication:"); in hb_pub_get()
1711 shell_print(sh, "\tdst 0x%04x count 0x%02x period 0x%02x", pub.dst, pub.count, pub.period); in hb_pub_get()
1712 shell_print(sh, "\tttl 0x%02x feat 0x%04x net_idx 0x%04x", pub.ttl, pub.feat, pub.net_idx); in hb_pub_get()
1717 static int hb_pub_set(const struct shell *sh, size_t argc, char *argv[]) in hb_pub_set() argument
1730 shell_warn(sh, "Unable to parse input string argument"); in hb_pub_set()
1737 shell_error(sh, "Heartbeat Publication Set failed (err %d)", err); in hb_pub_set()
1742 shell_print(sh, "Heartbeat Publication Set failed (status 0x%02x)", status); in hb_pub_set()
1744 shell_print(sh, "Heartbeat publication successfully set"); in hb_pub_set()
1750 static int cmd_hb_pub(const struct shell *sh, size_t argc, char *argv[]) in cmd_hb_pub() argument
1754 shell_warn(sh, "Invalid number of argument"); in cmd_hb_pub()
1758 return hb_pub_set(sh, argc, argv); in cmd_hb_pub()
1760 return hb_pub_get(sh, argc, argv); in cmd_hb_pub()