ubuntu core + snap + gpios

Luís Martins luis.pinto.martins at gmail.com
Tue Jan 17 23:31:10 UTC 2017

Hi, I was trying to build a simple snap to test the ubuntu core raspberry
pi 3 gpios [1] but for some reason the app does not seem allowed to write
into /sys/class/gpio/ within my snap.

I declared the "plugs: [gpio]" in the snapcraft.yaml and the app is a
simple qt5/c++ program using std::ifstream/std::ofstream to read/write to
the files.

However, using the latest stable ubuntu core image, the "snap interfaces"
command does not list the "gpio" as an available interface, is this normal ?

Am I missing any step here ?

[1] https://github.com/luispintomartins/gpio-tester

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170117/19653103/attachment.html>

More information about the Snapcraft mailing list