[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Detect Internet connection Speed
- From: Peng Zhicheng <pengzhicheng1986@...>
- Date: Mon, 30 Apr 2012 10:54:35 +0800
On 04/30/2012 07:40 AM, Satheesh Kumar wrote:
I am using Lua to develop a mobile appication.
Is there any function ( in lua sockets or other) to determine the speed of the device's internet connection?
Or should I just download a file and calculate (bytes/time)
I need to detect if the device's internet is 2G or not..
I have not used Lua on mobile devices.
but at at least on Android devices, I know there is APIs to detect the connection type.
see the documentation below:
I believe there must be some way to retrieve this same info in Lua.