Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hello all,
Currently in C you can open a connection with
SerialConnection("COM1", CBR_9600, 8, ONESTOPBIT, NOPARITY, 50, 10);
This passes to a function which calls
HANDLE hSerial = CreateFile(portString, GENERIC_READ|GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
more code etc.
Now if I try to combine this with the thingworx c sdk it gives an access violation. Do anyone know how to do this correctly?
Many Thanks