umh,
i have a "jar" file for called API in eclipse,
how can I get to communicate with the serial port?,
I also have this documentation
is there any way to import this file into b4x
thanks in advance
Connect to Printer (COM/RS232) //
Open it prnDevice = new CustomAndroidFiscalAPI ().getPrinterDriverCOM(ProtocolType.Custom, strDevPort);
where “strDevPort” is a string with the hardware device serial port (example “/dev/ttys0”).
NOTE: the function getPrinterDriverCOM, opens the device port in R/W mode and with the current serial configuration, so must be set these paramethers before to open it. Example: how to set the device serial port to R/W
//Init COM port running linux commands (set the port in R/W mode)
try me().exec("chmod 666 " + strDevPort); }
catch (Exception e) {}