Skip to first unread message

Myrul Yun

unread,
Feb 28, 2017, 1:09:38 PM2/28/17
to MIT App Inventor Forum
Hello there. Im using teleduino webserver to control my arduino uno and ethernet shield. I do project to control relays using arduino. Teleduino provide me url to switch on or off the relay. i've already make a simple design and block diagram and when i try lunch through emulator and press the button it's said error 1101: unable to get respond (link). i got attach my block design. anybody can help me to fix it?

mit.png

Ghica

unread,
Mar 1, 2017, 8:50:28 AM3/1/17
to MIT App Inventor Forum
The best way to debug such a thing is to type the url you are creating in a browser and see what happens.
You did not provide blocks about what happened when the request is complete, like the GotFile event (if you set save response), this can also help debug.
Cheers, Ghica.

Ghica

unread,
Mar 2, 2017, 5:50:14 AM3/2/17
to MIT App Inventor Forum
If you want to open a webbrowser on your phone, you should use the WebViewer component and not the Web component.
If you want to retrieve text from a website, you can use the Web component, but you must use the SaveResponse attribute set to true and use the GotFile or GotText event blocks.
Cheers, Ghica.

Ghica

unread,
Mar 2, 2017, 7:50:09 AM3/2/17
to MIT App Inventor Forum
You wrote:
<<
What u mean by retrieve text from website?
Is that mean i just press the button that link to url but not opening the webrowser?
Is there any guide to that?
>>
Please do not send me private email!

Look here:
www.appinventor.org/bookChapters/chapter24.pdf
Cheers, Ghica.
Reply all
Reply to author
Forward
0 new messages