HTTP Request post toggle switch

hi, im new with the mit app inventor, im trying to create an app with a toggle switch which controls the LED via http request POST,,
basically i want to have a toggle switch that when switched on, it posts,
and when switched off, it posts

im having problem with building the blocks, can some one show me how. thanks

already got it but with the switch component, thanks anyway

Does that work?

I am used to setting the IP address in the URL, not the POSt Text.

It's just an example of how to change the button, how he sends it is up to him, I just threw in the post block as a general example.


Shwich.aia (269.1 KB)