protocomm_console_start() function
Start console based protocomm transport
Arguments
pc
Protocomm instance pointer obtained from protocomm_new()
config
Config param structure for protocomm console
Return value
- ESP_OK : Success - ESP_ERR_INVALID_ARG : Null arguments - ESP_ERR_NOT_SUPPORTED : Transport layer bound to another protocomm instance - ESP_ERR_INVALID_STATE : Transport layer already bound to this protocomm instance - ESP_FAIL : Failed to start console thread
Notes
This is a singleton. ie. Protocomm can have multiple instances, but only one instance can be bound to a console based transport layer.
![]()
esp_err_t err = protocomm_console_start(pc, console_config);
protocomm_console_start() is called by 1 function and calls 1 function:
![]()
protocomm_console_start()
protocomm_console_start() reads 6 variables and writes 3 variables:
![]()
protocomm_console_start()