mirror of
https://github.com/JasonYANG170/IOTConnect-Web.git
synced 2024-11-27 14:16:34 +00:00
14 lines
214 B
JavaScript
14 lines
214 B
JavaScript
|
class Packet {
|
||
|
constructor () {
|
||
|
this.cmd = null
|
||
|
this.retain = false
|
||
|
this.qos = 0
|
||
|
this.dup = false
|
||
|
this.length = -1
|
||
|
this.topic = null
|
||
|
this.payload = null
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = Packet
|