![]() Once the “PtcApp” is found, I call a function to parse out which color LED to control and if it is a request for On or OFF. I left all the previous parsing blocks and function so that all the previous features will still continue working (ie: the web page interface is still fully functional). I just added another parser block to look for “PtcApp” in the incoming line from the ESP8266. The rest of the program has been detailed in many of my previous post. I am only going to cover the additional Arduino code I add to implement the AppInventor functionality here. The magic will happen on the upcoming Arduino code. I follow up “PtcApp” keyword with a code for the. I am using “PtcApp” as a keyword that is not likely to be seen by the server that I can key off of. The LED controls are just sending some custom strings using the Web.PutText function. The rest is really up to the Foscam camera to serve up the live stream…. The code to start up the live camera view is really just creating a Webviewer window which will display the web site specified in the corresponding text box whenever the Go button is clicked. I was running out of screen space and didn’t want to have to add another button so I just have the code run after the address is typed into the box and something else on the screen is touched. The AppInventor code to point the Web component to the ESP8266/Arduino server will set the Web1 URL to point to the web address that is entered in the corresponding text box. The app allows you to control an ESP32-Cam based robot car over Wifi (AP/STA. ![]() Another text box to specify the web address of the Arduino + ESP8266 system. This app is designed to make it easy for you to build a basic Wifi robot car with live video streaming (camera view).A WebViewer element which loads will load web page defined in text box element when the Go button is clicked.The buttons are just sending custom WebPutText keywords. I will make an app that will send Web.PutText to the Arduino through the ESP8266 to trigger LED light changes and have an embedded live Foscam Wireless window all on the screen on an Android App built in the AppInventor environment. My plan is to now mash up all three into one project. ![]() ( Real time Wireless Camera view using AppInventor2)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |