diff options
| author | kutayboz <kutayboz@gmail.com> | 2023-06-12 00:16:46 +0300 |
|---|---|---|
| committer | kutayboz <kutayboz@gmail.com> | 2023-06-12 00:16:46 +0300 |
| commit | 15b34952c44f19e6e31d81096c6ee43b6f1a201d (patch) | |
| tree | 2c3096e72bc3a6de20757d67185a0e7cbdbb9671 /include/serial.h | |
| parent | c516904d94603631a1abccc7525e00c9c35533f8 (diff) | |
| download | celnetmon-15b34952c44f19e6e31d81096c6ee43b6f1a201d.tar.gz | |
Working MQTT publishing
Diffstat (limited to 'include/serial.h')
| -rw-r--r-- | include/serial.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/serial.h b/include/serial.h index ccf0c6e..033fd54 100644 --- a/include/serial.h +++ b/include/serial.h @@ -1,9 +1,11 @@ #ifndef __INCLUDE_SERIAL__ #define __INCLUDE_SERIAL__ +typedef enum { SUCCESS, ERROR_READ, ERROR_TIMEOUT } SERIAL_RETURN_CODE; + int openSerialPort(char pathToPort[]); -int querySerialPort(char **output, int serialPort, char *input, - int timeoutSeconds); +SERIAL_RETURN_CODE querySerialPort(char **output, int serialPort, char *input, + int timeoutSeconds, char *lastLineSubStr); #endif |
