1. What is the expected response when the Web1.GotText event raised?
2. Can the below be the response?
"url:http://173.24.2.171,responseCode:200,responseType:text/plain,responseContent:GPIO is now high"
Hello Chris and fellow,
Attached is the screenshot of the code blocks using WebGotText event.
Attempt to simplify the code blocks.
From the previous email; “In theory, yes.”
["url:http://173.24.2.171,responseCode:200,responseType:text/plain,responseContent:GPIO is now high"]
How to make this string of text an expected response when the Web1.GotText event raised?
Best regards,
How to make this string of text an expected response when the Web1.GotText event raised?
ABG knows much more about this stuff than I do.
Hello Chris and ABG,
Hi Chris,
Is there a detail explanation on how to use the component Web1.GotText, especially its expected response?
Try to get the component Web1.GotText communicate with other microcontroller and not only Arduino, through string of text.
Hi ABG,
1. Which string?
Below is the string of text. Am I wrong?
"url:http://173.24.2.171,responseCode:200,responseType:text/plain,responseContent:GPIO is now high"
2.Expected by who or what, in what context?
If the Web1.GotText wait for a response to arrive, then can the below be the response.
GotText(text url, number responseCode, text responseType, text responseContent)Try to get the component Web1.GotText communicate with other microcontroller and not only Arduino, through string of text.
If the Web1.GotText wait for a response to arrive, then can the below be the response.
"url:http://173.24.2.171,responseCode:200,responseType:text/plain,responseContent:GPIO is now high"
Is there a detail explanation on how to use the component Web1.GotText, especially its expected response?
Hello Chris and ABG,
Just an idea about this trivial experiment. Using MIT App Inventor and microcontroller/Arduino (attached to switch and LED) together.
There is no coding on the microcontroller side and any setup yet. The reason is simple.
If one had to response to the Web1.GotText request, then the microcontroller/Aduino had to know the kind of response to the Web1.GotText.
Best regards,