Ajuda para criar app MIT App Inventor que detecta dia/noite via LDR com ESP32-C6 Wi-Fi

e que nem sei se a ia vai ajudar.. ent pedi ajuda aqui no forum porque sei que a pessoas que sabem fazer estas app ent pedi ajuda. se me conseguir nem que seja a fazer a app so para dizer o valor do ldr, agradeco

Use responseContent, not ResponseTextEncoding.

If you do my boring physical rehabilitation exercises for me, should I do your homework?

Taifun

mas depois e so isso?, ou tem mais codigo alem disso?



por exemplo podia pegar nisso para ler o sensor ldr?
ou nao? o que teria de acrescentar ou mudar. e que testei esse e dava me 1023 depois 900 dos 200 e 0 ma tudp em % e acho que nao era suposto

The webviewer is something else and for the webviewstringchange event you have to work with a html page... my guess is, this is not what you need
Move those blocks into the Web.GotText event

Taifun

image

basicamente isto é para um ldr ou seja quero ler via wifi

se quiser posso lhe enviar o meu ficheiro .aia, e voce ajuda me, mas vou tentar ver se le os valores do ldr


ent esta a dizer que e assim

PSE.aia (1.0 MB)

deixo aqui o projeto para quem quiser me ajudar e puder ajudar a terminar agradeco a todos por qualquer ajuda

Do you get something displayed in the 2 labels?

Also you have to set a global variable to some value first, else it will always be the initial value, in your case 0, so if you get something in the first label, the second will show always Dia...
At least during the day your blocks work

Taifun

pode me mostrar entao como tinha de ficar se faz favor

You forget to answer the question

Set global Valor_LDR to get response content

Taifun

vê algo exibido nos 2 rótulos? como assim? eu meti valor_ldr a inciar a 0 ou seja quero que ele inicialize a 0

Você vê algo exibido nos 2 rótulos? que rotulos desculpe a pergunta?

You will have to test the app to get something displayed, usually you use the companion app for this

The dark green blocks are labels or textboxes

Let me suggest you to do sone tutorials to learn the basics

A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook App Inventor 2 Book: Create Your Own Android Apps ... the links are at the bottom of the Web page. The book 'teaches' users how to program with AI2 blocks.
There is a free programming course here Course In A Box and the aia files for the projects in the book are here: App Inventor 2 Book: Create Your Own Android Apps
How to do a lot of basic things with App Inventor are described here: How do you...? .

Also do the tutorials Our Tutorials! to learn the basics of App Inventor, then try something and follow the Top 5 Tips: How to learn App Inventor

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.

Não consegui ainda testar pq n sei se estao todos os blocos, mas a idea seria a que esta no topico titulo, e queria saber se falta mais algum bloco. e o que falta mesmo, agradeco essas indicacoes de exmplos e o manual, mas como mencionei n sei se terei muito tempo para ler isso, pois o projeto e ate dezembro.

testei na app e da erro 1101: unable to get a response with spcefied url