My current testing phase is actual serial communication (2-way) from RPi/PHP > Arduino. and my web app is loading and displaying all dynamically generated content correctly as well. Everything as far as set-up and installing apps/packages is working as expected. I have moved away from testing on my Windows PC/WAMP. That seemed to work (no more port not open errors).Ĭurrently. Is 2-way serial communication possible with PHP when running on an you for the reply. (waiting for another 'user interaction' so to speak) and then change the display state/view of the hosted webpage. send out a serial message back to the RPi/PHP script. and when the Arduino is done doing its task(s). What I would like to happen is upon clicking a link/hotspot in the hosted webpage it to send some serial data upon $_POST to the connected Arduino via PHP. The RPi will have a webpage served up that I write. I will have an Arduino connected to the RPi. I have never attempted to use PHP serial communication when things were on a Pi. (for some added support/features in an MQTT set-up/project) I have previously set up a RPi with Apache, MySQL and PHP. and I was told that this was a PC issue, but on MAC/Linux, PHP serial comm works two ways without issue. Serial comms seemed to work only one way. I have attempted serial comm via PHP to Arduono using a WAMP install on a PC.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |