<< 点击显示目录 >> 主页 exOS使用助手 > exOS Automation Help > Development > Programming > exOS Communication API reference (exos_api.h) > exos_get_state_string() |
状态的字符串表示
char *exos_get_state_string(EXOS_CONNECTION_STATE state);
使用函数 exos_get_state_string(),可以获得连接状态的文本(ASCII 字符串)表示。
使用示例
printf("datamodel (%s) changed to state: %s", datamodel->name, exos_get_state_string(datamodel->connection_state));
String representation of a state
char *exos_get_state_string(EXOS_CONNECTION_STATE state);
With the function exos_get_state_string(), a textual (ASCII string) representation of a connection state can be aquired.
usage example:
printf("datamodel (%s) changed to state: %s", datamodel->name, exos_get_state_string(datamodel->connection_state));