Skip to first unread message

Suri Saket

unread,
Jan 13, 2016, 3:04:37 AM1/13/16
to MIT App Inventor Forum
I am trying to send a command to a WiFi module connected to a microcontroller. Can I send the data without the help of a server? My phone and the WiFi module both are in the same local network.

Mangesh

unread,
Jan 14, 2016, 1:12:09 AM1/14/16
to MIT App Inventor Forum
yes you can if the microcontroller is running a server.

Suri Saket

unread,
Jan 17, 2016, 6:48:57 AM1/17/16
to MIT App Inventor Forum
Is there a method to send commands to my microcontroller while in the same local network, without any server?

Ghica

unread,
Jan 17, 2016, 10:25:28 AM1/17/16
to MIT App Inventor Forum
What is the microcontroller, Arduino? Raspberry Pi? A Pi can easily run a server, Arduino I do not know. Usually people use Bluetooth with it, and in this case App Inventor can act as server or client.
Cheers, Ghica.

Suri Saket

unread,
Jan 20, 2016, 9:19:30 AM1/20/16
to MIT App Inventor Forum
It is neither Arduino nor Pi. It is MSP430. I connected a Wi-Fi module to it. So it is connected to my router. I have to send commands to it from my app while on the same local network. How can I do that?

Ghica

unread,
Jan 20, 2016, 11:08:35 AM1/20/16
to MIT App Inventor Forum
I think you will have to ask in an msp430 dicussion group. From AI you can send messages via Wifi to something that acts as a web server, or you can use the built-in Bluetooth component. So, if you can find out how this controller can communicate via wifi, we can help to use this protocol in AI.
Cheers, Ghica

Suri Saket

unread,
Jan 20, 2016, 12:42:47 PM1/20/16
to MIT App Inventor Forum
I have a Wi-Fi module connected to the microcontroller. The Wi-Fi module takes in the commands and forwards those commands to the microcontroller by a serial port. That is done. I am not able to figure out how to send commands over Wi-Fi. Can I send the commands as text directly to the IP of the device without a web server?
Thanks, Saket

Ghica

unread,
Jan 20, 2016, 1:20:34 PM1/20/16
to MIT App Inventor Forum
So, the Wifi module is a webserver in itself? Otherwise it is not possible. Really, this is not an AI problem. AI can act as a webclient, and send requests to a webserver. This is the way HTTP works, always client to server. So, maybe it is possible, but you have to find out yourself, by looking at what the microcontroller can do.
Cheers, Ghica.
Reply all
Reply to author
Forward
0 new messages