Re: dhcpcd-dbus
Meran Ahmad
Fri Jun 06 15:31:43 2014
Hello,
Thank you very much i now understand every thing :)
I was using dhcp_client and then reading the environment as json then pass them my API. This saved a lot
> do you use DBus on the PI for anything else?
Yea only for wpa_saupplicant and dhcpcd .Basically I want to have more solid network on my pi plus if i lost connection i want it to log every thing. and I am programming in python.
> Do you have a link to this project that I can reference?
Not yet i just started
Thanks again
Meran
On 6 Jun 2014, at 16:01, Roy Marples <roy@xxxxxxxxxxxx> wrote:
> On 06/06/2014 15:53, Meran Ahmad wrote:
>> Hello,
>> Thank you very much for that quick reply.
>>> But I would ask why you want to do this?
>> I am writing an network manager API in for raspberry pi. in this API,
>> I want to be able to set the IP manually or by dhcp. Now if the dhcpcd
>> is running regardless to my manual inputs once the “wpa_supplicant”
>> established the connection dhcpcd will on its own start dhcp request.
>
> Oh I see.
> So basically I've given you the tools to do that :)
>
> Basically your API just wants to read the dhcp config (via getconfig and getconfigblocks),
> write the chosen config back to dhcpcd and then issue a reconfigure command.
>
> I would leave the default as DHCP enabled but allow for static IP as you say.
> BTW, do you use DBus on the PI for anything else? I can demonstrate a C library with the same level of features as dhcpcd-dbus that talks natively via sockets.
>
> Do you have a link to this project that I can reference? I have a pi myself, just using a XMBC front end.
>
> Roy
>
>
Archive administrator: postmaster@marples.name