I am completely lost on this. Hopefully someone can point me in the right direction.
I am using: https://code.google.com/archive/p/android-serialport-api/
I have included the pre-built libserial_port.so in my project, along with SerialPort.h and SerialPort.c. Compiles with no warnings or errors.
How do I now open the serial port? The .c/.h files provide two C functions, but to call them requires a JNIEnv * which I don't have in my C++ project.
I can see that JNIEnv is a struct that is a table of function pointers.
I am using Visual Studio 2017 with the Android extension, and I have created a NativeActivity project.
Thanks!