Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
@Packet name LevelIsLow
|
||||
@Packet identifier 152
|
||||
@Description Sends "level is low" notification
|
||||
@Data pId
|
||||
@Structure -
|
||||
*/
|
||||
|
||||
module.exports = function() {
|
||||
const packetLength = 1 + 1;
|
||||
const buffer = new ArrayBuffer(packetLength);
|
||||
const view = new DataView(buffer);
|
||||
|
||||
view.setUint8(0, 152);
|
||||
view.setUint8(1, packetLength);
|
||||
|
||||
return buffer;
|
||||
};
|
||||
Reference in New Issue
Block a user