Skip to contentSkip to conversation

How to connect to client network using ell dbus interface

DISCUSSION [email protected] 2 participants 2 messages Aug 9, 2021 – Aug 12, 2021

lore
Share & tools
lore
#0 lore raw

Hi,
I am trying to integrate station API to my application (C code), I am using the interface net.connman.iwd.Station to run a scan() and the interface net.connman.iwd.Network to connect() but how I can start a simple agent to provide the password? Can you provide me with a complete procedure to connect to WP2 network using ell dbus binding?

Regards,
Salahaldeen

#1 lore raw

Hi Salahaldeen,

Quoted 2 lines · salahaldeen.altous(a)leica-camera.com

Hi,
I am trying to integrate station API to my application (C code), I am using the interface net.connman.iwd.Station to run a scan() and the interface net.connman.iwd.Network to connect() but how I can start a simple agent to provide the password? Can you provide me with a complete procedure to connect to WP2 network using ell dbus binding?

There's an agent implementation that ships as part of our iwctl client. See:
https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/client/agent.c
https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/client/agent-manager.c

ell also ships with a basic dbus service example:
https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/examples/dbus-service.c

Regards,
-Denis