Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-18 Thread Rafał Miłecki
On 08.08.2020 01:47, Andre Valentin wrote: I'm just experimenting a bit with the patch. There were multiple this: You need to reply to all, this is public stuff potentially affecting all OpenWrt users. 1) I habe some mips routers and an ipq806x based router. After I added that patch, I canno

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-05 Thread Andre Valentin
Hi! Am 04.08.20 um 18:40 schrieb Rafał Miłecki: > On 04.08.2020 09:43, Andre Valentin wrote: >> Am 03.08.20 um 07:49 schrieb Rafał Miłecki: >>> On 31.07.2020 13:02, Andre Valentin wrote: this is really great stuff. It would help me to get forward with my wifi controller. Could it b

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-04 Thread Rafał Miłecki
On 04.08.2020 09:57, Jo-Philipp Wich wrote: Regarding parsing events stream, event names with spaces seem to be OK: https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream To me it feels quirky to separate the path and the type of the event by space. Personally I

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-04 Thread Rafał Miłecki
On 04.08.2020 09:43, Andre Valentin wrote: Am 03.08.20 um 07:49 schrieb Rafał Miłecki: On 31.07.2020 13:02, Andre Valentin wrote: this is really great stuff. It would help me to get forward with my wifi controller. Could it be possible to subsribe to multiple sources to limit the connections

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-04 Thread Jo-Philipp Wich
Hi, > Regarding parsing events stream, event names with spaces seem to be OK: > https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream To me it feels quirky to separate the path and the type of the event by space. Personally I'd only report the type as "event:" an

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-04 Thread Andre Valentin
Hi! Am 03.08.20 um 07:49 schrieb Rafał Miłecki: > On 31.07.2020 13:02, Andre Valentin wrote: >> this is really great stuff. It would help me to get forward with my wifi >> controller. >> Could it be possible to subsribe to multiple sources to limit the >> connections to ubus? >> 2 SSIDs with 2.4

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-03 Thread Rafał Miłecki
On Fri, 31 Jul 2020 at 14:35, Nicolas Pace wrote: > On 7/31/20 1:49 AM, Rafał Miłecki wrote: > > From: Rafał Miłecki > > > > 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 proto

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-08-02 Thread Rafał Miłecki
On 31.07.2020 13:02, Andre Valentin wrote: this is really great stuff. It would help me to get forward with my wifi controller. Could it be possible to subsribe to multiple sources to limit the connections to ubus? 2 SSIDs with 2.4 ad 5GHz would me 4 concurrent channels if I understand right.

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-07-31 Thread Nicolas Pace
On 7/31/20 1:49 AM, Rafał Miłecki wrote: > From: Rafał Miłecki > > 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. Th

Re: [PATCH V2 uhttpd] ubus: add new RESTful API

2020-07-31 Thread Andre Valentin
Hi Rafel, this is really great stuff. It would help me to get forward with my wifi controller. Could it be possible to subsribe to multiple sources to limit the connections to ubus? 2 SSIDs with 2.4 ad 5GHz would me 4 concurrent channels if I understand right. Kind regards, André Am 31.07.20

[PATCH V2 uhttpd] ubus: add new RESTful API

2020-07-30 Thread Rafał Miłecki
From: Rafał Miłecki 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 2