[luci] [Fwd: Netmon communication API]

Clemens John clemens-john at gmx.de
Mon Aug 3 19:33:24 CEST 2009


On Monday 03 August 2009 19:16:52 Jo-Philipp Wich wrote:
> 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

That sounds very good.
I´ll try that.

Bye
Clemens


More information about the luci mailing list