![]() |
Network type detection
Hi,
I need to detect the network type I'm connected through on a N900, in order to adapt the size of what I'm downloading to the connection speed. I can already find out whether I'm connected through WiFi or cellular data, but in the latter case I would need to know what's the "generation" of that cellular connection (2.5G, 3G or 3.5G ?) in order to estimate the throughput I can expect. There's got to be a way to get that information since the status area displays it, but so far I haven't been able to find it. Any hint is welcome, Thanks in advance |
Re: Network type detection
yup check my healthcheck application :)
Uses Python / pymaemo - and pulls out Cell info connection type A good example of the code can be found here though - http://repository.maemo.org/extras-d...urce/n/netmon/ |
Re: Network type detection
Thanks, that was indeed really helpful. Here's the code I came up with, in case someone else is interested:
Code:
GError* error = NULL; |
Re: Network type detection
Quote:
|
Re: Network type detection
Thanks for posting that! :)
Can you please post code for how to detect if the current connection is wifi or cellular ? |
Re: Network type detection
Quote:
You can also figure out whether you're connected through bluetooth by testing for additional bearer strings as documented in libconic. Code:
#include <conic/conicconnection.h> |
All times are GMT. The time now is 03:00. |
vBulletin® Version 3.8.8