#include <iostream> #include <string> #include <sstream> #include <Windows.h> #include "SerialClass.h" char buffer[25]; using namespace std; int i; int main() { Serial oSerial("COM8:"); oSerial.WriteData("1",1); Sleep(100); oSerial.ReadData(buffer,25); string str = buffer; string word; stringstream stream(str); while( getline(stream, word, ',') ) cout <<word << "\n"; Sleep (10000); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)