Now I'm Licenced.
I followed the step about generate .xml but failed, the XML is generated but after I put jamod.jar & jamod.xml into Lib, I can't load it.
You may need the file attached in eclipse, but I don't know what's wrong with it.
I got the error is "Error parsing libraries"
Can you use Eclipse to do the same as your tour? Maybe I do something wrong.
The Java source code I have posted in attachment.
The .jar file is a Modbus class, is there some lib in B4A the same but I don'e know?
:sign0188:
I just understand, it's not a way to convert a .jar to .B4A lib, each member in JAVA class I need to declare again by create a new java project, after that use BADoclet. So if the class is a very big one, it will take a longtime. If I only use a little member in that big class, it's a good way, right?
Do you have idea to convert a big .jar class into B4A lib easily?:icon_clap:
You only need to create wrappers for the methods that you need to call. If the source code is available then you can add the required annotations with creating a wrapper (in most cases).
Hi i am trying to implement modbus. i have had some success with jamod over TCP but i am now trying to implement it over Bluetooth serial. for some reason i cannot get the jamod to connect to the serial port i have started. i am getting the bluetooth to connect ok and i have sent data across it but the modbus wont connect. any help would be appreciated.
Hi
Could you give me little example code ? tell me how to implement jamod in B4J to read/write slave device with modbus TCP. Tandk's and Merry chrismas !
Hi i am trying to implement modbus. i have had some success with jamod over TCP but i am now trying to implement it over Bluetooth serial. for some reason i cannot get the jamod to connect to the serial port i have started. i am getting the bluetooth to connect ok and i have sent data across it but the modbus wont connect. any help would be appreciated.