Skip to content

v0.7.0

Compare
Choose a tag to compare
@github-actions github-actions released this 11 Oct 09:37
· 24 commits to main since this release

🧹 Housekeeping

  • Bump mycila from 4.1 to 4.2
  • Bump remove gson dependency

✨ Improve User Experience

MQTT

Subcribe

toolkit_mqtt_rbqIIa4F@test.mosquitto.org:1883 > help sub
Usage: > sub -t <topic> -q <qos> [-b64] [-hex] [-json]
Subscribe this MQTT client to a list of topics

Options:
-t --topic     The topics to publish to
-q --qos       Quality of service for the corresponding topic (default for all: 0)
-b64 --base64  Whether the received publish messages will be base64 decoded.
-hex --hex     Whether the received publish messages will be hex decoded.
-json --json   Whether the received publish messages will be json pretty decoded.
  • add whether the received publish messages will be base64 decoded.
  • add whether the received publish messages will be hex decoded
  • add Whether the received publish messages will be json pretty decoded

Publish

Usage: > pub -t <topic> -q <qos>  [-m <messageFromCommandline> | -mf <messageFromFile> | -mh <hexFormatMessage> | -mb <base64FormatMessage>]
Publish a message to a list of topics

Options:
-t --topic             The topics to publish to
-q --qos               Quality of service for the corresponding topic (default for all: 0)
-m, --message          The message to publish
-mf, --message-file    The file containing the payload which will be published on the topic.
-mh, --message-hex     The hex format message which will be published on the topic.
-mb, --message-base64  The base64 format message which will be published on the topic.
  • add The file containing the payload which will be published on the topic.
  • add The hex format message which will be published on the topic.
  • add The base64 format message which will be published on the topic.

LwM2M

image

command update name

update toolkit nb call -> toolkit nb shell

subcommand add features

  • List
某产品: > help list
Usage:  > ls,list [-sv <searchValue>] [-pn <pageNo>] [-ps <pageSize>]
显示所有 NB-IoT 设备列表

Options:
-sv --searchValue   搜索关键字(选填)
-pn --pageNo        数据列表的页码(选填)
-ps --pageSize      数据列表的页大小(选填)
  • Add
某产品:> help add
Usage:  > add -imei <imei> -name <name> [-notObserv] [-imsi <imsi>] [-pskType <pskType:0 or 1>] [-pskValue <pskValue>]
增加 NB-IoT 设备

Options:
-imei        设备的imei(必填)
-name        设备的名称(增加设备必填,更新时选填)
-notObserv   设备的imsi 总长度不超过15位 使用0~9的数字(选填)
-imsi        是否订阅(选填)
-pskType     取值0或者1 0代表普通字符串 1代表16进制字符串(选填)
-pskValue    由大小写字母加0-9数字组成的16位字符串(选填)
  • Log
某产品: > help log
Usage:  > log -imei <imei> [-limit <name>] [-startTime] [-endTime <imsi>]
打印设备上报数据

Options:
-imei         设备的imei(必填)
-limit         数据列表条数(选填)
-startTime     搜索设备日志数据列表的起始时间(默认是当天00:00:00,选填)
-endTime       查询设备日志数据列表的结束时间(默认是当天23:59:59,选填)
-hex           消息将被十六进制解码(无物模型时生效).
  • Command
某产品: > help cmd
Usage:  > cmd,command -imei <imei> [-pn <pageNo>] [-ps <pageSize>]
打印设备指令数据

Options:
-imei               搜索关键字(选填)
-pn --pageNo        数据列表的页码(选填)
-ps --pageSize      数据列表的页大小(选填)