Coder Social home page Coder Social logo

OOP about microcoapy HOT 4 OPEN

insighio avatar insighio commented on July 28, 2024
OOP

from microcoapy.

Comments (4)

ftylitak avatar ftylitak commented on July 28, 2024

Hello @big-vl

it is not wrong to use it as long as you provide a properly initialized CoapPacket instance as "send" and "sendEx" functions do. Also manually set the coap state:

self.state = self.TRANSMISSION_STATE.STATE_IDLE

May I ask why do you need to use the low level function directly?

from microcoapy.

big-vl avatar big-vl commented on July 28, 2024

Hello @big-vl

it is not wrong to use it as long as you provide a properly initialized CoapPacket instance as "send" and "sendEx" functions do. Also manually set the coap state:

self.state = self.TRANSMISSION_STATE.STATE_IDLE

May I ask why do you need to use the low level function directly?

so I wrote that it would be better to make methods more usable, for example _sendPacket I would know that I can use it but with some limitation. So there are no problems with the code, there is also a question about subscription, as I understand it, according to the specification, such an opportunity exists but is not implemented. For now, I'll have to use sockets without a specification.

from microcoapy.

big-vl avatar big-vl commented on July 28, 2024

@ftylitak You have made a very stable and good library, I am delighted.

from microcoapy.

ftylitak avatar ftylitak commented on July 28, 2024

Thank you for your kind words.

Indeed, the function should be named _sendPacket. Right now I am a bit hesitant to change it to avoid breaking compatibility with applictions that already use it...though I believe there are none to few of them.

It might be done soon.

Fo the subscription, in case you make it work, we are open for contributions :)

from microcoapy.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.