Legato-af modbus module? - is it there? - where is the API?

I note that modbus module or lib is included in the legatoproject legato-af (git sources).

Yet I cannot find clarity on the following:

  1. is it std in the legato-linux build?
  2. where are the API’s?
  3. any example or sample app’s using this ‘module’?

I’m looking to utilize modbus serial RTU functions on the MangOH Yellow via plugin RS485 module (Renfell and Engergiya) and serial port /dev/ttyUSB0.

Any direction/pointers is most welcome,
Mike

I have no knowledge on libmodbus, but I found that you can build it in the yocto source:

You can have a try on this:

1.download the yocto source and go to ./meta-swi/meta-swi-mdm9x28/recipes-core/images/mdm9x28-image.inc

2.add the following line:
IMAGE_INSTALL_append = " libmodbus"

3.go to ./meta-swi/meta-swi-mdm9x28/conf/machine/swi-mdm9x28.conf
change UBI_ROOTFS_SIZE ?= “48MiB”

  1. Make the yocto image and download to the module

  2. I can find some libmodbus libraries are built, for example :

./build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/libmodbus/3.0.6-r0/image/usr/lib/libmodbus.so
./build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/libmodbus/3.0.6-r0/image/usr/lib/libmodbus.so.5.0.5
./build_bin/tmp/work/armv7a-neon-poky-linux-gnueabi/libmodbus/3.0.6-r0/image/usr/lib/libmodbus.so.5