Send message via wifi
I am trying to send a message via wifi now... after kind of giving up on bluetooth.
My first step has to be to scan available wifi connections on phone. (May be on the click of a button) but How do I go about scanning of wifi ?
There is something called a QTCPserver and networkconfiguration manager... Are they the same ?
What do I have to use for wifi.. I tried searching for some code snippets, but couldn't find any.
Can you please help.
Thanks a lot in advance,
Did you see this example "BearerMonitor":http://doc.qt.digia.com/qtmobility-1.0/bearermonitor.html ?
Its lists all avaliable Wifi's using QNetworkConfiguration.
After that once you connect to a Network, you will be in that network and an IP address will be assigned to the device.
Then just create a server and client using QTcpServer and QTcpSocket.
Follow these example for more details.
Thanks a ton for those links... my bad that I wasn't able to find those links.
But im trying to develop an app that runs on phone and scans for wifi connections on phone and then send message...
First step for me is to scan wifi , something similar to "wifi scan" app available on play store... I am totally lost here...
Will that link help ?
For which phone you want it to work ?
acer tablet B1A71
Well from the .pro file it seems that it can be used on symbian phones. But i guess if you compile the same source code using Android Qt 5.1.1 it may work on it with some modifications. Other than that you will need to set the respective Permissions for Android from Projects > Run > Package configurations > Permissions
Permissions like what ? As of now I can see this in that option:
only show wlan0.cannot display other wireless devices