Have you looked at The custom-device interface ? The slot and the plug can be defined within the same snap, in which case you would then establish a connection by running: snap connect mysnap:plug-name mysnap:custom-device-slot
.
Have you looked at The custom-device interface ? The slot and the plug can be defined within the same snap, in which case you would then establish a connection by running: snap connect mysnap:plug-name mysnap:custom-device-slot
.