<div class="gmail_quote">2011/10/17 윤민홍 <span dir="ltr"><<a href="mailto:mhyun@etri.re.kr">mhyun@etri.re.kr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div lang="KO" link="blue" vlink="purple"><div><p class="MsoNormal"><span lang="EN-US">Dear colleagues,<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">I’m trying to connect to wpa_supplicant through dbus.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I have “fi.w1.wpa_supplicant1.service” file in “/usr/share/dbus-1/system-services” directory. And I can find “fi.w1.wpa_supplicant1” in d-feet. <u></u><u></u></span></p><p class="MsoNormal">
<span lang="EN-US">But whenever I try to call a method, the system says “The name fi.w1.wpa_supplicant1 was not provided by any .service files”.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Please let me know which part of my code is incorrect.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-US">My codes are…<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">dbmsg = dbus_message_new_method_call ("fi.w1.wpa_supplicant1", "/fi/w1/wpa_supplicant1", "org.freedesktop.DBus.Introspectable", "Introspect");<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">dbreply = dbus_connection_send_with_reply_and_block(conn, dbmsg, 5000, &error);</span></p></div></div></blockquote></div><div><br></div>This looks ok, but maybe you are connected to the session bus instead of the system bus?<div>
<div><br></div>-- <br>Kalle Vahlman, <a href="mailto:zuh@iki.fi" target="_blank">zuh@iki.fi</a><br>Powered by <a href="http://movial.com" target="_blank">http://movial.com</a><br>Interesting stuff at <a href="http://sandbox.movial.com" target="_blank">http://sandbox.movial.com</a><br>
<br>
</div>