AnsweredAssumed Answered

How can I know if connection is wifi or cellular

Question asked by KGorton-esristaff Employee on Mar 18, 2016
Latest reply on Mar 21, 2016 by paul.haakma

I am writing a mobile app in Qt Creator and I want to enable and disable certain behaviors depending on whether the device is 1) disconnected 2) connected via cellular or 3) connected via wifi. I see has several properties that seem to be in the ballpark. Specifically looks like it might indicate the network is wifi and all the other Bearer~ properties (other than BearerEthernet) suggest cellular connections. Is this correct? If so, how do I leverage this property which is numeric to compare it to my boolean property that indicates if the user has chosen to only use wifi connections? It doesn't appear I can verify it like this:
if ( && ( (wifiOnly.checked && || (wifiCell.checked) ))

wifiOnly.checked and wifiCell.checked are user-configured settings in the app for the permitted connectivity.