Lines Matching full:sh
20 static void cmd_run(const struct shell *sh, size_t argc, char **argv) in cmd_run() argument
25 LOG_INF("Run started from %s", sh->name); in cmd_run()
26 shell_info(sh, "Starting hawkBit run..."); in cmd_run()
32 shell_error(sh, "Image is unconfirmed." in cmd_run()
37 shell_info(sh, "No update found"); in cmd_run()
41 shell_info(sh, "Update installed"); in cmd_run()
45 shell_error(sh, "Download error"); in cmd_run()
49 shell_error(sh, "Networking error"); in cmd_run()
53 shell_error(sh, "Metadata error"); in cmd_run()
57 shell_error(sh, "hawkBit not initialized"); in cmd_run()
61 shell_error(sh, "Invalid response"); in cmd_run()
67 static int cmd_info(const struct shell *sh, size_t argc, char *argv) in cmd_info() argument
78 shell_print(sh, "Action id: %d", hawkbit_get_action_id()); in cmd_info()
79 shell_print(sh, "Unique device id: %s", device_id); in cmd_info()
80 shell_print(sh, "Firmware Version: %s", firmware_version); in cmd_info()
81 shell_print(sh, "Server address: %s", hawkbit_get_server_addr()); in cmd_info()
82 shell_print(sh, "Server port: %d", hawkbit_get_server_port()); in cmd_info()
83 shell_print(sh, "DDI security token: %s", in cmd_info()
91 static int cmd_init(const struct shell *sh, size_t argc, char *argv) in cmd_init() argument
96 shell_info(sh, "Init hawkBit ..."); in cmd_init()
103 static int cmd_reset(const struct shell *sh, size_t argc, char *argv) in cmd_reset() argument
110 shell_print(sh, "Reset action id %s", (ret == 0) ? "success" : "failed"); in cmd_reset()
117 static int cmd_set_addr(const struct shell *sh, size_t argc, char **argv) in cmd_set_addr() argument
120 shell_error(sh, "Invalid number of arguments"); in cmd_set_addr()
129 static int cmd_set_port(const struct shell *sh, size_t argc, char **argv) in cmd_set_port() argument
132 shell_error(sh, "Invalid number of arguments"); in cmd_set_port()
142 static int cmd_set_token(const struct shell *sh, size_t argc, char **argv) in cmd_set_token() argument
145 shell_error(sh, "Invalid number of arguments"); in cmd_set_token()