When I use the AI companion i get a runtime error saying it can’t find the PH component, which is a button called ph. What the program is supposed to do is in screen 1 send to an esp 32 the wifi name and password of the network i want to use (Which works) and then save the ip adress on the tiny db so on screen two i can change the url of the esp32 client server activating for now some leds. I do not know if it’s propperly recieving the ip adress, and i don’t know why it gives me the runtime error when as soon as i switch to screen two
Update just tested it a bit and in screen one it’s getting the IP adress correctly, so it seems to be working ok on that end
Try to rename the button to see if this fixes the issue
Also try to restart App Inventor
And as a side note: learn how to switch screens correctly... App Inventor Tutorials and Examples: Manager Screen | Pura Vida Apps
Taifun
thanks, sadly renaming didn’t work, i also tried deleting the component but then it just gives the same error with the other button, i also tried making a copy of the project and downloading it as an apk and non of those solved my problem
I see that you use a clock to work on the "ghost" button: pay attention that whenever the clock fires, it works on the button but, if in the meanwhile, you have changed the screen, the button can be present or not, therefore the runtime error is issued.
In addition to what @Taifun has already said, please try to avoid the use of multiple screens, and allocate everything on Screen1 and look if it works. Moreover take a sight to the posts relevant to "virtual screens" (multiple horizontal and vertical layers hidden/displayed only when needed). This method avoids the use of tyniDB and also the fact that any Bluetooth communication ceases when the app changes screen.
For example here:
Best wishes for your project.


