PHP extension for PWM, OLED and Relay expansion
-
Hi,
I wrote a PHP extension that wrap libonion[oled, pwm, relay]exp.
https://github.com/kea/Onion-Omega-Php-extensionHere you can find the compiled version omega.so
Copy the extension to your omega device and test it with one of the 3 php test files that you can find in the repository above.
$ scp omega.so root@omega-XXX.local: $ scp test_relay.php root@omega-XXX.local: $ ssh root@omega-XXX.local: root@Omega-XXXX:~$ opkg install php5-cli root@Omega-XXXX:~$ php-cli -d extension=/root/omega.so test_relay.php
If you like it, I'll add documentation and helper classes.
Any feedback is greatly appreciated!
-
@Manuel-Baldassarri Awesome! Documentation and Helper Classes would be amazing!
You can publish it in our wiki by creating a Pull Request on our wiki GitHub repo: https://github.com/OnionIoT/wiki
-
Nice!!!! Thanks a ton Manuel!
-
Nice! Thanks a lot for this. Looking forward to the phpwrapper