[PATCH V2 uhttpd] ubus: add new RESTful API
zajec5 at gmail.com
Mon Aug 3 07:50:08 EDT 2020
On Fri, 31 Jul 2020 at 14:35, Nicolas Pace <nico at libre.ws> wrote:
> On 7/31/20 1:49 AM, Rafał Miłecki wrote:
> > From: Rafał Miłecki <rafal at milecki.pl>
> > Initial uhttpd ubus API was fully based on JSON-RPC. That restricted it
> > from supporting ubus notifications that don't fit its model.
> > Notifications require protocol that allows server to send data without
> > being polled. There are two candidates for that:
> > 1. Server-sent events
> I did a quick and dirty implementation of it some time ago, that works
> with everything as it is.
> You might want to check it out.
> Still, eager to see this work done!
My first initial implementation was also PHP based :)
It didn't work well with lighttpd though as I had to disable buffering using
That and looking for something more generic (not PHP based) made me
look at uhttpd.
More information about the openwrt-devel