[SailfishDevel] Get current SSID?

2019-12-01 Thread Anton Thomasson
Hi list, How would i go about getting the current SSID in an app? Is there even a "proper way"? The reason i'm asking is that i'm working on (IPP) printer support as promised, and i'd like to "scope" saved printers with the SSID of the network that they reside on. No reason to look for things tha

Re: [SailfishDevel] Get current SSID?

2019-12-01 Thread Slava Monich
Hi Anton, I would say the easiest way is to find a connman service which matches the following criteria: 1. "Type" property value is "wifi" 2. "State" property value is "online" or "ready" Then the value of its "Name" property would be SSID of the AP you're connected to, converted to text as

Re: [SailfishDevel] Get current SSID?

2019-12-01 Thread Anton Thomasson
Hi Slava, Thanks, that was really helpful. I have it working in a DBusInterface now, that should do well enough for my intents :) Br, Anton Den sön 1 dec. 2019 kl 18:58 skrev Slava Monich : > Hi Anton, > > I would say the easiest way is to find a connman service which matches > the following cr

Re: [SailfishDevel] Get current SSID?

2019-12-01 Thread E.S. Rosenberg
Doesn't IPP do discovery of some kind? As far as I understand my laptop rediscovers CUPS printers every time they come online on a network Op zo 1 dec. 2019 om 21:06 schreef Anton Thomasson : > Hi Slava, > > Thanks, that was really helpful. > I have it working in a DBusInterface now, that sho

Re: [SailfishDevel] Get current SSID?

2019-12-01 Thread Anton Thomasson
Indeed IPP does do discovery, which more precisely means it suggests DNS-SD/Bonjour but mandates it only for "IPP Evereywhere". This leave some usable printers, as well as default-configured CUPS installations, non-discoverable from what i have found. This lead me to wanting to save said printers b