17 #include "../../src/serialPortPlatform.h" 18 #include "../../src/ISComm.h" 22 int main(
int argc,
char* argv[])
26 printf(
"Please pass the com port as the only argument\r\n");
44 printf(
"Failed to open serial port on com port %s\r\n", argv[1]);
53 printf(
"Failed to encode stop broadcasts message\r\n");
60 printf(
"Failed to encode stop broadcasts message\r\n");
76 const char* asciiMessage =
"ASCB,512,,,1000,,,,,,,";
86 printf(
"Failed to encode ASCII get INS message\r\n");
95 printf(
"Failed to encode ASCII save persistent message\r\n");
102 unsigned char* asciiData;
103 unsigned char asciiLine[512];
110 printf(
"%s\n", asciiData);
int serialPortOpen(serial_port_t *serialPort, const char *port, int baudRate, int blocking)
int main(int argc, char *argv[])
int serialPortReadAscii(serial_port_t *serialPort, unsigned char *buffer, int bufferLength, unsigned char **asciiData)
int serialPortWriteAscii(serial_port_t *serialPort, const char *buffer, int bufferLength)