Over a million developers have joined DZone.
Platinum Partner

Raspberry Pi GPIO using OSGi Services

· IoT Zone

The IoT Zone is brought to you in partnership with ThingWorx. Explore the ThingWorx Developer Zone and learn how to rapidly develop IoT applications.

I've created an API that abstracts individual GPIO Pins as OSGi services, and made it available via the ECF github repository.  This allows applications to easily use the Raspberry Pi's GPIO to send output to or receive input from peripherals.

I've also created a short tutorial on how to use these services to control a single LED.

In a future tutorial, it's my intention to also show how to use OSGi Remote Services to easily expose GPIO Pins services for remote access.

The IoT Zone is brought to you in partnership with ThingWorx. ThingWorx is the most complete application development platform available that is purpose-built for the IoT.


Published at DZone with permission of Scott Lewis , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}