[riot-users] Fwd: Is there a http server example ?

Burak Karaduman bburakkaraduman at gmail.com
Mon Mar 25 12:12:06 CET 2019


Hi Ken,

Thank you very much  to show me a way. I will look them ASAP.

Best Regards.

Ken Bannister <kb2ma at runbox.com>, 25 Mar 2019 Pzt, 00:34 tarihinde şunu
yazdı:

> Hi Burak,
>
> See the 'tests/nanocoap_cli' directory for a CLI based client we use for
> testing. You also should review 'examples/gcoap' for a CLI tool that
> handles both server side and client side.
>
> Ken
> On 3/24/19 2:02 PM, Burak Karaduman wrote:
>
>
>
> ---------- Forwarded message ---------
> Gönderen: Burak Karaduman <bburakkaraduman at gmail.com>
> Date: 24 Mar 2019 Paz, 16:01
> Subject: Re: [riot-users] Is there a http server example ?
> To: Philipp Blum <philipp-blum at jakiku.de>
>
>
> Thanks for your answer Philipp. I decided to use nanocoap_server example
> and i installed a plugin to firefox to test it. Everything worked fine!.
> Yet, I cannot use desktop and web browser to make get request etc to
> esp8266 nanocoap server.
> I need to create a client. I look into nanocoap_sock.h , however, i cannot
> explaniation about creating a client. Do i miss someting?
> Thanks.
>
> Philipp Blum <philipp-blum at jakiku.de>, 23 Mar 2019 Cmt, 13:44 tarihinde
> şunu yazdı:
>
>> ahh, sorry. You already looked into COAP. If you really want to use HTTP,
>> you have to write your own lib or find another lib. CoAP has a lot of
>> different implementation <http://coap.technology/impls.html>. e.g. Java
>> & C. Even for iOS & Android. So, it shouldn't be a big issue to use it :)
>> Maybe the mapper is a good approach for your project. :)
>>
>>
>>
>> Am 2019-03-23 11:38, schrieb Philipp Blum:
>>
>> You should consider using COAP instead. :)
>> You can find an example for nanocoap here:
>> https://github.com/RIOT-OS/RIOT/tree/master/examples/nanocoap_server
>>
>> If you really want to use HTTP, you can use the COAP HTTP mapping in
>> Squid <http://telecom.dei.unipd.it/pages/read/90/>. (Haven't tried it.
>> Maybe somebody else can help there.
>>
>> best regards
>>
>> Philipp
>>
>> Am 2019-03-23 11:03, schrieb Burak Karaduman:
>>
>> Hi all,
>>
>> I work the device with ESP8266 using RIOT OS. Since ESP8266 Nodemcu V1.0
>> has built-in IEEE 802.11, i plan to control gpio using POST requiest to
>> http server runs in ESP8266. Usage should be like [ip address of
>> esp8266]/turnOn/gpio1 etc. I successfully flash and run gnrc_networking in
>> ESP8266 and connected to my home network. Controlling gpio is not a
>> problem, however where and which example should i look to implement http
>> server? I looked nanocoap but it is not http.
>>
>> If I success this work, it is going to be included in my master thesis
>> and in academic paper. (Of course referring RIOT.)
>>
>> Thanks for your help.
>>
>> _______________________________________________
>> users mailing list
>> users at riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/users
>>
>>
>>
>>
>>
>>
>>
>
> _______________________________________________
> users mailing listusers at riot-os.orghttps://lists.riot-os.org/mailman/listinfo/users
>
> _______________________________________________
> users mailing list
> users at riot-os.org
> https://lists.riot-os.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/users/attachments/20190325/0e16582e/attachment.html>


More information about the users mailing list