Hi @prachandabhanu ,
I do believe you will need to create a client in order to utilize the memory maps. As your code is written, the application doesn't inherently know that it should open memory on the local device. Creating the client will tell the application to create an ipc connection if no other address is provided.
With regard to the AppArmor error, what does your snapcraft.yaml look like? Take a look at the datalayer.ecat.io example and make sure you have the same plugs.
EDIT: @ipa-vsp --- You actually should not need a client, my mistake. Using the shared memory requires IPC and therefore the application must run on the same device as the datalayer broker. Are you running the application locally on the CORE?
... View more