Page 1 of 1

Newbie Question about GPL V2 Licence

Posted: Mon Jan 22, 2018 12:58 pm
by Gfast2
Hi ESP-IDF,

Really not ESP-IDF Specific Question. But I wanna deploy "mongoose" as the http server on my application. If I open-sourced my header files which will call the APIs from mongoose library. Do I have to pay them for commercial purpose, too?

BTW: I did investigate time to googling this answer. But there is not some good ones. This one let me understand the most. but still didn't answered my question above. :?:

Re: Newbie Question about GPL V2 Licence

Posted: Mon Jan 22, 2018 3:49 pm
by WiFive
You have to either open source your whole app or get commercial license.

Re: Newbie Question about GPL V2 Licence

Posted: Mon Jan 22, 2018 6:31 pm
by Gfast2
Hi WiFive,

Thanks for your clear explanation! 8-)

I will find out a better solusion for this later.

Cheers

Gfast2

Re: Newbie Question about GPL V2 Licence

Posted: Tue Jan 23, 2018 1:27 am
by ESP_Sprite
WiFive wrote:You have to either open source your whole app or get commercial license.
Actually... I'm not a lawyer, but the way I read it is like this: The non-commercial variant of Mongoose is GPLv2, which states that all sources need to be made available on request. Now, with your own code, you can do that just fine, but if you want to link in the WIFi/BT libraries, these are closed source, meaning that you cannot distribute the resulting binaries, even in the form of binaries inside the flash of products you sell. If you disable WiFi/BT, you don't have that problem, but that'd probably make Mongoose somewhat useless...

This is actually something that has been low-level bugging us for a while, and we may come up with something (think tiny dynamically-linked 'OS') to fix this in the future.

Re: Newbie Question about GPL V2 Licence

Posted: Tue Jan 23, 2018 9:03 am
by Gfast2
Hi ESP_Sprite:

A tons thanks for your even practical Answers! It brings me to the point that if I didn't plan to pay money on any part of my Software, I have to avoid "Mongoose" at all. :oops:

Since Kolban in his book (kolban-ESP32) has mentioned that "Making a REST request using Curl". And I believe most of what I really need is just a RESTful Server. Perhaps I will give Curl a try.

P.s:
To tell the truth, I don't believe there is a "go-to" http server library on ESP-IDF till now. But I believe even deeper, that the main Problem in this point is caused by the problem in between my two ears on my body . ;)

Cheers

Gfast

Re: Newbie Question about GPL V2 Licence

Posted: Tue Jan 23, 2018 12:04 pm
by WiFive
Ah yes forgot you can't open source your whole app because of closed source parts of esp-idf.

curl is a client, not server.

Try https://github.com/chmorgan/libesphttpd

Re: Newbie Question about GPL V2 Licence

Posted: Tue Jan 23, 2018 5:04 pm
by Gfast2
Hi WiFive,

I will give this a try later:
If you are in Berlin, I believe I will buy you "free beer(s)". If you can bear human like me by your side. I will give that a try too.

Cheers

Su Gao (Gfast2)