This really has nothing to do with the BB. You should look into python
flask or a similar framework since you're using python. There are many
options. You need something to replace what php be doing for you.

Regards

Jim

On Tue, Mar 5, 2019, 7:35 AM <[email protected]> wrote:

> Hello..
>           I want to control gpio pins of beaglebone from web page.for that
> i have written back-end python code to ON and OFF the led. and front-end
> html code to create web page.
> How can i embedd this two code and control the led from web page without
> using the PHP.
>
> My front end HTML code is here....
> <html>
> <body>
>     <form method="post">
>     <p>
>         <button name="button">On</button>
>     </p>
>     <p>
>         <button name="btn">Off</button>
>     </p>
>     </form>
> </body>
> </html>
>
>
> And my backend gpio control python code is Here...
>
> import Adafruit_BBIO.GPIO as GPIO
>
> import time
>
> outPin="P9_12"
>
> GPIO.setup(outPin,GPIO.OUT)
>
> while True:
>
>    GPIO.output(outPin, GPIO.HIGH)
>
>    Print  “LED is ON”
>
>    time.sleep(10)
>
>    GPIO.output(outpin,GPIO.LOW)
>
>    Print  “LED is OFF”
>
>    time.sleep(10)
>
> How can i embedd this two code to control the led  from web page without
> using the PHP.
> .
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/f7141dac-8671-4d50-8aef-dd25aa19cd71%40googlegroups.com
> <https://groups.google.com/d/msgid/beagleboard/f7141dac-8671-4d50-8aef-dd25aa19cd71%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAGS%2B2h-th51X1ZLHBOJtW02woCpbKddyQnCNNJMspkiLkdYYTw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to