Group
Extension

Matches 2

Device-WebIO-Dancer ( T/TM/TMURRAY/Device-WebIO-Dancer-0.004.tar.gz, TMURRAY, 2016; MetaCPAN )
Device-WebIO-Dancer/pod/rest_api.pod ( view source; MetaCPAN )
ailable
403 GPIO # Disabled
404 [something] Not Found 


=head2 BASIC

=head3 GET /map

Returns a JSON list, with each entry corresponding to a pin on the physical 
header.  Each entry can be:

=over 
7, 18, 27, "GND", 22, 23, "V33", 24, 10, "GND", 9, 25, 11, 8, "GND", 7]

=head3 GET /*

Returns a JSON of available interfaces.  Keys:

=over 4

=item * UART [bool]

=item * SPI [bool]

=item * I2C [b
Device-WebIO-Dancer ( T/TM/TMURRAY/Device-WebIO-Dancer-0.004.tar.gz, TMURRAY, 2016; MetaCPAN )
Device-WebIO-Dancer/lib/Device/WebIO/Dancer.pm ( view source; MetaCPAN )
    return '';
};


get '/map' => sub {
    return to_json( $webio->pin_desc( $default_name ) );
};

get qr{\A / \* }x => sub {
    return to_json( $webio->all_desc( $default_name ) );
};


get '/' =>
s point, you should be able to startup Apache.  Calling 
C<http://example.com/*> should get you a JSON dump of the pins.  Calling 
C<http://example.com/app/app/gpio-header/index.html> should get you a

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.