npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

coap.mqtt.lwm2m

v1.0.3

Published

a command-line tool for everyday work with coap,mqtt,or lwm2m

Readme

Introduction

coap.mqtt.lwm2m.client is a command-line tool for everyday work with coap,mqtt,or lwm2m.

  • coap-client: It is a simple command-line tool for interacting with CoAP servers.

Installation

aiocoap, it is the python CoAP library.

To install this module,first,download the library file,then modify the file named resource.py

return self._resources[request.opt.uri_path], request.copy(uri_path=request.opt.uri_path) line 253
return self._resources[request.opt.uri_path], request.copy(uri_path=copy()) the initial code

finally,run " python setup.py install " to install the library

the lwm2m-client,it's written according to the aiocoap

you can download the library file from https://github.com/wangnuannuan/lwm2m-client.git

 python setup.py install

the usage

coap-client [-h] [--non] [-m METHOD] [--observe] [--observe-exec CMD] [--accept MIME] [--proxy HOST[:PORT]] [--payload X] [--content-format MIME] [-v] [-q] [--dump FILE] [--interactive] [--credentials CREDENTIALS]

  • --non, Send request as non-confirmable (NON) message,Default: False

  • --method, Name or number of request method to use ,Default: “GET”

  • --observe, Register an observation on the resource,Default: False

  • --observe-exec,Run the specified program whenever the observed resource changes, feeding the response data to its stdin

  • --accept, Content format to request

  • --proxy, Relay the CoAP request to a proxy for execution

  • --payload, Send X as payload in POST or PUT requests. If X starts with an '@', its remainder is treated as a file name and read from.

  • --content-format, Content format sent via POST or PUT

  • -v, --verbose, Increase the debug output

  • -q, --quiet, Decrease the debug output

  • --dump,Log network traffic to FILE

  • --interactive, Enter interactive mode # careful: picked before parsing

  • --credentials, Load credentials to use from a given file

  • url,CoAP address to fetch

mqtt-client [-h] [-d DEBUG] [-a HOST] [-i ID] [-k KEEPALIVE] [-p PORT] [-u USERNAME] [-P PASSWORD] [-t TOPIC] [--payload] [--qos]

  • -d ,if the debug is true,run the mqtt client
  • -a ,host the client to connect
  • -i,the client id
  • -k,the time keepalive,default=60
  • -p ,the server port
  • -u,username
  • -P,the password
  • -t,the topic to subscribe or unsubscribe
  • --payload,the message to publish

lwm2m-client [-n endpointname] [-c createobj] [-s setobjvalue] [-r run/register]

  • -n,the device name
  • -c,if yes ,then create object,for example[/3303/0],if enter n,it will stop create object
  • -s,if yes,then set the object value,for example [/3303/0 5700 0],if enter n,it will stop set object value
  • -r,(yes)run the client