posborne / lcoap

Pure Lua CoAP Protocol Implementation and Client
MIT License
10 stars 0 forks source link

How to setup options on a get request? #4

Open toddaustin07 opened 11 months ago

toddaustin07 commented 11 months ago

Message.new_get method appears to include a way to specify coap options, however when client.get invokes it, it doesn't pass the option parameter.

What am I missing? And what is the expected format of the options parameter in the client.get method besides a timeout value?

Perhaps an example of how to specify and include a coap option would be helpful to include in the docs.

lonerzzz commented 10 months ago

Though it doesn't say in the documentation, this library is largely incomplete. Except for a timeout parameter, none of the options is used or even referenced in the code. I found this only after hitting the same issue as yourself.