Air800(GPRS+GPS模块)连接OneNet平台

                    <h2 id="air800介绍" style="outline: 0px; padding: 0px; margin: 8px 0px 16px; font-size: 24px; color: rgb(79, 79, 79); font-weight: 700; line-height: 32px; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">OneNet平台介绍<br></h2><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">OneNET作为中国移动通信集团推出的一个专业物联网开放云平台,提供了丰富的智能硬件开发工具和可靠的服务,助力各类终端设备迅速接入网络,实现数据传输、数据存储、数据管理等完整的交互流程。</p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">支持公开协议包括EDP、MODBUS、MQTT以及HTTP等多种协议。详细资料参见:<a href="https://open.iot.10086.cn/doc" rel="nofollow" target="_blank" style="outline: 0px; color: rgb(103, 149, 181); cursor: pointer; word-break: break-all;">https://open.iot.10086.cn/doc</a></p><h2 id="所需api" style="outline: 0px; padding: 0px; margin: 8px 0px 16px; font-size: 24px; color: rgb(79, 79, 79); font-weight: 700; line-height: 32px; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><a name="t2" style="outline: 0px; color: rgb(78, 161, 219); cursor: pointer; word-break: break-all;"></a>所需API</h2><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">Luat封装了很多的实用API,所以在实现一些功能的时候就无需自己造轮子,直接调用其API即可</p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><a href="http://wiki.openluat.com/doc/luatApi/#mqtt" rel="nofollow" target="_blank" style="outline: 0px; color: rgb(103, 149, 181); cursor: pointer; word-break: break-all;">mqtt</a></p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><a href="http://wiki.openluat.com/doc/luatApi/#pack" rel="nofollow" target="_blank" style="outline: 0px; color: rgb(103, 149, 181); cursor: pointer; word-break: break-all;">pack</a></p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><a href="http://wiki.openluat.com/doc/luatApi/#gps" rel="nofollow" target="_blank" style="outline: 0px; color: rgb(103, 149, 181); cursor: pointer; word-break: break-all;">gps</a></p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">lbs</p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><a href="http://wiki.openluat.com/doc/luatApi/#json" target="_blank">json</a></p><h2 id="实现思路" style="outline: 0px; padding: 0px; margin: 8px 0px 16px; font-size: 24px; color: rgb(79, 79, 79); font-weight: 700; line-height: 32px; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><a name="t3" style="outline: 0px; color: rgb(78, 161, 219); cursor: pointer; word-break: break-all;"></a>实现思路</h2><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">本例通过MQTT将Air800获取到的GPS坐标发送到OneNET平台并显示。</p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">MQTT协议是一个面向物联网应用的即时通信协议,使用TCP/IP提供网络连接,能够对负载内容实现消息屏蔽传输,开销小,可以有效降低网络流量。OneNET平台采用的是标准MQTT协议,所以使用合宙提供的MQTT API就能很方便的连上。只需要在OneNET上生成一个应用方可得到MQTT鉴权</p><pre class="prettyprint" name="code" style="outline: 0px; padding: 8px 16px 6px 56px; margin-bottom: 24px; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; position: relative; overflow-y: hidden; line-height: 22px; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250); border-width: initial; border-style: none; border-color: initial; font-variant-ligatures: common-ligatures;"><code class="hljs  has-numbering" style="outline: 0px; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; display: block; padding: 0.5em; color: rgb(0, 0, 0); line-height: 22px; background-color: rgb(246, 248, 250); border-radius: 4px; overflow-x: auto; white-space: pre; word-wrap: normal; text-size-adjust: none; word-break: break-all;">Q1:MQTT连接鉴权时,Payload中ClientIdentifier;UserName;UserPassword分别填写什么?

A: ClientIdentifier: 创建设备时得到的设备ID,为数字字串;

   UserName: 注册产品时,平台分配的产品ID,为数字字串;

   UserPassword: 为设备的鉴权信息(即唯一设备编号,SN),或者为apiKey,为字符串。</code><ul class="pre-numbering" style="outline: 0px; padding-top: 8px; padding-bottom: 8px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: inherit; word-break: break-all; position: absolute; width: 48px; background-color: rgb(238, 240, 244); top: 0px; left: 0px; text-align: right;"><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">1</li><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">2</li><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">3</li><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">4</li><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">5</li><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">6</li><li style="outline: 0px; padding: 0px 8px; margin: 0px; font-size: inherit; list-style: none; word-break: break-all; color: rgb(153, 153, 153);">7</li></ul></pre><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">OneNET平台优势之一可以利用数据点快速生成应用</p><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><img src="http://oldask.openluat.com/image/show/attachments-2018-09-MvPFGaTu5b9c730355901.png" class="img-responsive" style="color: rgb(0, 0, 0); font-size: 14px; text-align: start; width: 865.5px;"></p><div><br></div><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"=""><img src="http://oldask.openluat.com/image/show/attachments-2018-09-5bFg4QYI5b9c7307e3436.png" class="img-responsive" style="color: rgb(0, 0, 0); font-size: 14px; text-align: start; width: 709.5px;"></p><div><br>要想让数据在OneNET平台上以数据点形式展现出来就得按照OneNET协议上传数据,使用OneNET平台的mqtt协议调试工具可以看到payload以json格式发送,并在json前面加0x01,0x00,0x20(这个字节为json长度),payload格式发送。</div><p style="outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, " sf="" ui="" text",="" arial,="" "pingfang="" sc",="" "hiragino="" sans="" gb",="" "microsoft="" yahei",="" "wenquanyi="" micro="" hei",="" sans-serif;="" font-variant-ligatures:="" common-ligatures;"="">json格式如下</p><pre class="prettyprint" name="code" style="outline: 0px; padding: 8px 16px 6px 56px; margin-bottom: 24px; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; position: relative; overflow-y: hidden; line-height: 22px; color: rgb(0, 0, 0); background-color: rgb(246, 248, 250); border-width: initial; border-style: none; border-color: initial; font-variant-ligatures: common-ligatures;"><code class="language-json hljs  has-numbering" style="outline: 0px; font-family: Consolas, Inconsolata, Courier, monospace; font-size: 14px; display: block; padding: 0.5em; color: rgb(0, 0, 0); line-height: 22px; background-color: rgb(246, 248, 250); border-radius: 4px; overflow-x: auto; white-space: pre; word-wrap: normal; text-size-adjust: none; word-break: break-all;">{
"<span class="hljs-attribute" style="outline: 0px; font-size: inherit; word-break: break-all;">datastreams</span>": <span class="hljs-value" style="outline: 0px; font-size: inherit; word-break: break-all;">[
    {
        "<span class="hljs-attribute" style="outline: 0px; font-size: inherit; word-break: break-all;">id</span>": <span class="hljs-value" style="outline: 0px; font-size: inherit; word-break: break-all;"><span class="hljs-string" style="outline: 0px; color: rgb(0, 153, 0); font-size: inherit; word-break: break-all;">"temperature"</span></span>, //数据流名称或数据流模板名称
        "<span class="hljs-attribute" style="outline: 0px; font-size: inherit; word-break: break-all;">datapoints</span>": <span class="hljs-value" style="outline: 0px; font-size: inherit; word-break: break-all;">[
           {
              "<span class="hljs-attribute" style="outline: 0px; font-size: inherit; word-break: break-all;">at</span>": <span class="hljs-value" style="outline: 0px; font-size: inherit; word-break: break-all;"><span class="hljs-string" style="outline: 0px; color: rgb(0, 153, 0); font-size: inherit; word-break: break-all;">"2013-04-22T00:35:43"</span></span>, //上传数据点时间,可选。如果为空,则设备云会取当前时间。

//如果存在其格式必须为”YYYY-MM-DDThh:mm:ss”的形式(例如:2015-03-22T22:31:12)
“value
“: 42 //上传数据点值
},
{
at“: “2013-04-22T00:55:43”,
value“: 84 //上传数据点值
}
]
},
{
id“: “key”, //数据流名称或数据流模板名称
datapoints“: [
{
at“: “2013-04-22T00:35:43”,//上传数据点时间,可选。
value“: {…}//上传数据点值
},
{
at“: “2013-04-22T00:35:43”,
value“: {…}//上传数据点值
}
]
},
{…}
]
}

<p style=”outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, “ sf=”” ui=”” text”,=”” arial,=”” “pingfang=”” sc”,=”” “hiragino=”” sans=”” gb”,=”” “microsoft=”” yahei”,=”” “wenquanyi=”” micro=”” hei”,=”” sans-serif;=”” font-variant-ligatures:=”” common-ligatures;”=””>本例中的json格式为

{
"datastreams": [
{
"id": "gps",
"datapoints": [
{
"at": "",
"value": {
"lon": 106.584,
"lat": 29.5707,
"ele": 100
}
}
]
}
]
}
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
<p style=”outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, “ sf=”” ui=”” text”,=”” arial,=”” “pingfang=”” sc”,=”” “hiragino=”” sans=”” gb”,=”” “microsoft=”” yahei”,=”” “wenquanyi=”” micro=”” hei”,=”” sans-serif;=”” font-variant-ligatures:=”” common-ligatures;”=””>可以看到对应不同的数据点,只需要修改“id”和“datapoints”。

<h2 id=”部分代码” style=”outline: 0px; padding: 0px; margin: 8px 0px 16px; font-size: 24px; color: rgb(79, 79, 79); font-weight: 700; line-height: 32px; word-break: break-all; font-family: -apple-system, “ sf=”” ui=”” text”,=”” arial,=”” “pingfang=”” sc”,=”” “hiragino=”” sans=”” gb”,=”” “microsoft=”” yahei”,=”” “wenquanyi=”” micro=”” hei”,=”” sans-serif;=”” font-variant-ligatures:=”” common-ligatures;”=””>部分代码<p style=”outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, “ sf=”” ui=”” text”,=”” arial,=”” “pingfang=”” sc”,=”” “hiragino=”” sans=”” gb”,=”” “microsoft=”” yahei”,=”” “wenquanyi=”” micro=”” hei”,=”” sans-serif;=”” font-variant-ligatures:=”” common-ligatures;”=””>所以将GPS数据发送到OneNET平台上,最关键点将获取到的GPS数据打包为OneNET数据点格式

local function msgPack()
--打包json
local torigin =
{
datastreams =
{ {
id = "gps",
datapoints =
{ {
at = "",
value =
{
lon = bgps.returnBlng(), --得到获取到的经度
lat = bgps.returnBlat(), --得到获取到的纬度
ele = "100"
}
} }
} }
}
local msg = json.encode(torigin) --对json进行编码
local len = msg.len(msg)
buf = pack.pack("bbbA", 0x01,0x00,len,msg) --打包数据流字节头
end
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
<p style=”outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, “ sf=”” ui=”” text”,=”” arial,=”” “pingfang=”” sc”,=”” “hiragino=”” sans=”” gb”,=”” “microsoft=”” yahei”,=”” “wenquanyi=”” micro=”” hei”,=”” sans-serif;=”” font-variant-ligatures:=”” common-ligatures;”=””>GPS读取数据处理

--- 模块功能:GPS功能测试.
-- @author openLuat
-- @module gps.testGps
-- @license MIT
-- @copyright openLuat
-- @release 2018.03.23

module(…,package.seeall)

require”gps”
require”agps”
require”lbsLoc”
require”common”

local Rlat = “”
local Rlng = “”
–[[
功能 :发送查询位置请求
参数 :无
返回值:无
]]
local function reqLbsLoc()
reqAddr = not reqAddr
lbsLoc.request(getLocCb,reqAddr)
end

–[[
功能 :获取基站对应的经纬度后的回调函数
参数 :
result:number类型,0表示成功,1表示网络环境尚未就绪,2表示连接服务器失败,3表示发送数据失败,4表示接收服务器应答超时,5表示服务器返回查询失败;为0时,后面的3个参数才有意义
lat:string类型,纬度,整数部分3位,小数部分7位,例如031.2425864
lng:string类型,经度,整数部分3位,小数部分7位,例如121.4736522
addr:string类型,UCS2大端编码的位置字符串。调用lbsLoc.request时传入的第二个参数为true时,才返回本参数
返回值:无
]]
function getLocCb(result,lat,lng,addr)
–log.info(“testLbsLoc.getLocCb”,result,lat,lng,result==0 and common.ucs2beToGb2312(addr) or “”)
–获取经纬度成功
if result==0 then
Rlat = lat
Rlng = lng
log.info(“testLbsLoc success”,Rlat,Rlng)
else
Rlat = “”
Rlng = “”
end

end

function printGps()
if gps.isFix() then
local tLocation = gps.getLocation()
Rlat = tLocation.lat
Rlng = tLocation.lng
log.info(“testGps.printGps success”,
gps.isOpen(),gps.isFix(),
tLocation.lngType,tLocation.lng,tLocation.latType,tLocation.lat,
gps.getAltitude(),
speed,
gps.getCourse(),
gps.getViewedSateCnt(),
gps.getUsedSateCnt())
else
reqLbsLoc()
end
return Rlat,Rlng

end

local function test1Cb(tag)
log.info(“testGps.test1Cb”,tag)
–printGps()
end

–设置GPS+BD定位
–如果不调用此接口,默认也为GPS+BD定位
–gps.setAerialMode(1,1,0,0)

–设置仅gps.lua内部处理NEMA数据
–如果不调用此接口,默认也为仅gps.lua内部处理NEMA数据
–如果gps.lua内部不处理,把NMEA数据通过回调函数cb提供给外部程序处理,参数设置为1,nmeaCb
–如果gps.lua和外部程序都处理,参数设置为2,nmeaCb
– gps.setNmeaMode(2,nmeaCb)

– test(testIdx)
gps.open(gps.DEFAULT,{tag=”TEST1”,cb=test1Cb})
–sys.timerLoopStart(printGps,20000)

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38

<table class=”highlight tab-size js-file-line-container” data-tab-size=”8” style=”tab-size: 8; color: rgb(36, 41, 46); font-family: -apple-system, BlinkMacSystemFont, “ segoe=”” ui”,=”” helvetica,=”” arial,=”” sans-serif,=”” “apple=”” color=”” emoji”,=”” “segoe=”” ui=”” symbol”;=”” background-color:=”” rgb(255,=”” 255,=”” 255);”=””><td id=”LC1” class=”blob-code blob-code-inner js-file-line” style=”padding-right: 10px; padding-left: 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, “ liberation=”” mono”,=”” menlo,=”” courier,=”” monospace;=”” font-size:=”” 12px;=”” word-wrap:=”” normal;=”” white-space:=”” pre;”=””>
<td id=”L89” class=”blob-num js-line-number” data-line-number=”89” style=”padding-right: 10px; padding-left: 10px; width: 50.4px; min-width: 50px; font-family: SFMono-Regular, Consolas, “ liberation=”” mono”,=”” menlo,=”” courier,=”” monospace;=”” font-size:=”” 12px;=”” line-height:=”” 20px;=”” color:=”” rgba(27,=”” 31,=”” 35,=”” 0.3);=”” text-align:=”” right;=”” white-space:=”” nowrap;=”” vertical-align:=”” top;=”” cursor:=”” pointer;=”” user-select:=”” none;”=””><td id=”LC89” class=”blob-code blob-code-inner js-file-line” style=”padding-right: 10px; padding-left: 10px; position: relative; line-height: 20px; vertical-align: top; overflow: visible; font-family: SFMono-Regular, Consolas, “ liberation=”” mono”,=”” menlo,=”” courier,=”” monospace;=”” font-size:=”” 12px;=”” word-wrap:=”” normal;=”” white-space:=”” pre;”=””>



<p style=”outline: 0px; padding: 0px; margin-bottom: 16px; font-size: 16px; color: rgb(79, 79, 79); line-height: 26px; text-align: justify; word-break: break-all; font-family: -apple-system, “ sf=”” ui=”” text”,=”” arial,=”” “pingfang=”” sc”,=”” “hiragino=”” sans=”” gb”,=”” “microsoft=”” yahei”,=”” “wenquanyi=”” micro=”” hei”,=”” sans-serif;=”” font-variant-ligatures:=”” common-ligatures;”=””>完整代码:https://github.com/lenghonglin/openLuat_Air800/tree/master/OneNet

上次更新 2021-01-28