[luci] [Fwd: Netmon communication API]

Jo-Philipp Wich xm at subsignal.org
Mon Aug 3 19:16:52 CEST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Clemens.

 > I´m developer of Netmon (http://netmon.freifunk-ol.de/) and I
consider to
> implement an API to our Network Monitoring Site so it can communicate with 
> Luci/OpenWrt.

Nice.

> [...]
> What is the best communication format? I saw a couple of API´s that return 
> XML, but I know that Luci returns JSON.

I consider XML unsuitable as communication format since the associated
parser libraries are pretty big and take up too much flash space. One
could write a stripped down parser that does some primitive XML parsing
but then it's wouldn't make much sense to use this format in the first
place if you end up not supporting most of the features anyway.

However, LuCI provides a JSON decoder/encoder class [1] and TLS capable
HTTP client implementation [2]. I think those both APIs are enough to
get started.


Regards,
JoW


[1] http://dev.luci.freifunk-halle.net/luci-doc/modules/luci.json.html
[2] http://luci.subsignal.org/trac/browser/luci/trunk/libs/httpclient
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkp3G38ACgkQdputYINPTPNirgCglwN4Qo93OztY/oIEHuGlhPS6
iM4AnAwCaQirrz7rSoZojZH3jAUpgPFF
=yYu9
-----END PGP SIGNATURE-----


More information about the luci mailing list