Tanganelli / CoAPthon

CoAPthon is a python library to the CoAP protocol aligned with the RFC
MIT License
226 stars 131 forks source link

can I use it to bulid a interface in my flask server? #129

Open a108483 opened 6 years ago

a108483 commented 6 years ago

i use flask build a server,users can use http protocol to visit the web and put the date to server,and now i want to use the coap url to receive the date by users in coap protocol.can i do it by coapython?

Tanganelli commented 6 years ago

yes of course. I mean you must create a coap server and then you can receive coap requests.

Il giorno ven 16 nov 2018 alle ore 08:23 a108483 notifications@github.com ha scritto:

i use flask build a server,users can use http protocol to visit the web and put the date to server,and now i want to use the coap url to receive the date by users in coap protocol.can i do it by coapython?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Tanganelli/CoAPthon/issues/129, or mute the thread https://github.com/notifications/unsubscribe-auth/AGb2-l9zxe7oOEeWM-6Vs-YFOgeOBqFiks5uvmfegaJpZM4Ylnpf .

a108483 commented 6 years ago

I am very grateful to you for answer my question. But I found that I did not express my problem clearly.I want my flask server can receive the coap request.And now i found this may be impossible,so i want to build a proxy server by CoAPthon. In other words, after a coap request come,the proxy server can translate the coap request to http request,and send it to my flask server.Can i do it? Is there any document?any way thank you for answer me.